Module: Liquid::BlockBodyProfilingHook

Included in:
BlockBody
Defined in:
lib/liquid/profiler/hooks.rb

Instance Method Summary collapse

Instance Method Details

#render_node(context, output, node) ⇒ Object



5
6
7
8
9
10
11
12
13
# File 'lib/liquid/profiler/hooks.rb', line 5

def render_node(context, output, node)
  if (profiler = context.profiler)
    profiler.profile_node(context.template_name, code: node.raw, line_number: node.line_number) do
      super
    end
  else
    super
  end
end