mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-12 23:40:45 -07:00
Change behavior of capture tag to use existing variables if they already have been initialized in an outer scope.
This commit is contained in:
committed by
Tobias Lütke
parent
e26f509277
commit
13f98de7f3
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user