Lazily evaluate template name for context variable injection

This commit is contained in:
Justin Li
2015-05-11 18:01:24 -04:00
parent 25ef0df671
commit ff253a04c6
2 changed files with 12 additions and 10 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ module Liquid
class Include < Tag
def render_with_profiling(context)
Profiler.profile_children(context.evaluate(@template_name).to_s) do
Profiler.profile_children(context.evaluate(@template_name_expr).to_s) do
render_without_profiling(context)
end
end