Class: Lesmok::Tags::DebugComment

Inherits:
Liquid::Block
  • Object
show all
Includes:
ErrorLogging
Defined in:
lib/lesmok/tags.rb

Instance Method Summary collapse

Methods included from ErrorLogging

#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