Change behavior of capture tag to use existing variables if they already have been initialized in an outer scope.

This commit is contained in:
Dennis Theisen
2010-08-06 06:02:37 +08:00
committed by Tobias Lütke
parent e26f509277
commit 13f98de7f3
2 changed files with 42 additions and 1 deletions
+1 -1
View File
@@ -26,7 +26,7 @@ module Liquid
def render(context)
output = super
context[@to] = output.join
context.scopes.last[@to.to_s] = output.join
''
end
end