mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-29 07:05:12 -07:00
Remove unnecessary comment, add joost's change to History.md
This commit is contained in:
@@ -3,6 +3,7 @@
|
|||||||
## 3.0.0 / not yet released / branch "master"
|
## 3.0.0 / not yet released / branch "master"
|
||||||
|
|
||||||
* ...
|
* ...
|
||||||
|
* Support for passing variables to snippets in subdirs, see #271 [Joost Hietbrink, joost]
|
||||||
* Add a class cache to avoid runtime extend calls, see #249 [James Tucker, raggi]
|
* Add a class cache to avoid runtime extend calls, see #249 [James Tucker, raggi]
|
||||||
* Remove some legacy Ruby 1.8 compatibility code, see #276 [Florian Weingarten, fw42]
|
* Remove some legacy Ruby 1.8 compatibility code, see #276 [Florian Weingarten, fw42]
|
||||||
* Add default filter to standard filters, see #267 [Derrick Reimer, djreimer]
|
* Add default filter to standard filters, see #267 [Derrick Reimer, djreimer]
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ module Liquid
|
|||||||
context[key] = context[value]
|
context[key] = context[value]
|
||||||
end
|
end
|
||||||
|
|
||||||
context_variable_name = @template_name[1..-2].split('/').last # for a snippet in a subdir only use the filename
|
context_variable_name = @template_name[1..-2].split('/').last
|
||||||
if variable.is_a?(Array)
|
if variable.is_a?(Array)
|
||||||
variable.collect do |var|
|
variable.collect do |var|
|
||||||
context[context_variable_name] = var
|
context[context_variable_name] = var
|
||||||
|
|||||||
Reference in New Issue
Block a user