Remove unnecessary comment, add joost's change to History.md

This commit is contained in:
Florian Weingarten
2013-11-25 10:52:46 -05:00
parent f5620d4670
commit 4647e6d86b
2 changed files with 2 additions and 1 deletions

View File

@@ -3,6 +3,7 @@
## 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]
* Remove some legacy Ruby 1.8 compatibility code, see #276 [Florian Weingarten, fw42]
* Add default filter to standard filters, see #267 [Derrick Reimer, djreimer]

View File

@@ -51,7 +51,7 @@ module Liquid
context[key] = context[value]
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)
variable.collect do |var|
context[context_variable_name] = var