Class: Lesmok::Tags::DebugComment
- Inherits:
-
Liquid::Block
- Object
- Liquid::Block
- Lesmok::Tags::DebugComment
show all
- Includes:
- ErrorLogging
- Defined in:
- lib/lesmok/tags.rb
Instance Method Summary
collapse
#log_exception, #with_exception_logging
Instance Method Details
#render(context) ⇒ Object
20
21
22
23
24
25
|
# File 'lib/lesmok/tags.rb', line 20
def render(context)
return '' unless Lesmok.config.debugging?
with_exception_logging(context) do
"<!-- LIQUID DEBUG: #{super} -->"
end
end
|