Module: Liquid::DocumentProfilingHook

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

Instance Method Summary collapse

Instance Method Details

#render_to_output_buffer(context, output) ⇒ Object



18
19
20
21
# File 'lib/liquid/profiler/hooks.rb', line 18

def render_to_output_buffer(context, output)
  return super unless context.profiler
  context.profiler.profile(context.template_name) { super }
end