Commit bfcceb23 authored by Sylvester Keil's avatar Sylvester Keil

update liquid variable resolution

see #84
parent 9976a0ee
...@@ -444,7 +444,7 @@ module Jekyll ...@@ -444,7 +444,7 @@ module Jekyll
# We need to do this every time, to support for loops, # We need to do this every time, to support for loops,
# where the context can change for each invocation. # where the context can change for each invocation.
Array(@keys).map do |key| Array(@keys).map do |key|
context.send(:resolve, key) || key context[key] || key
end end
end end
...@@ -452,7 +452,7 @@ module Jekyll ...@@ -452,7 +452,7 @@ module Jekyll
return unless string return unless string
string.gsub(/{{\s*([\w\.]+)\s*}}/) do |match| string.gsub(/{{\s*([\w\.]+)\s*}}/) do |match|
context.send(:resolve, $1) || match context[$1] || match
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment