render_to_output_buffer

This commit is contained in:
Florian Weingarten
2019-04-23 17:06:29 -04:00
parent 2a1ca3152d
commit 9640e77805
30 changed files with 184 additions and 88 deletions
+4 -4
View File
@@ -11,13 +11,13 @@ module Liquid
end
class Include < Tag
def render_with_profiling(context, output)
def render_to_output_buffer_with_profiling(context, output)
Profiler.profile_children(context.evaluate(@template_name_expr).to_s) do
render_without_profiling(context, output)
render_to_output_buffer_without_profiling(context, output)
end
end
alias_method :render_without_profiling, :render
alias_method :render, :render_with_profiling
alias_method :render_to_output_buffer_without_profiling, :render_to_output_buffer
alias_method :render_to_output_buffer, :render_to_output_buffer_with_profiling
end
end