Use Expression.parse and Context#evaluate in the Include class.

This commit is contained in:
Dylan Thacker-Smith
2014-10-18 15:03:40 -04:00
parent 3a4b63f37e
commit bc5e444d04
2 changed files with 15 additions and 12 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ module Liquid
class Include < Tag
def render_with_profiling(context)
Profiler.profile_children(@template_name) do
Profiler.profile_children("'#{context.evaluate(@template_name)}'") do
render_without_profiling(context)
end
end