Proper warning support

This commit is contained in:
Tristan Hume
2013-08-19 15:14:26 -04:00
parent eb68a751ac
commit 047900d0dd
4 changed files with 15 additions and 1 deletions

View File

@@ -58,6 +58,7 @@ module Liquid
end
def render(context)
context.errors.concat(@warnings) if @warnings
context.registers[:for] ||= Hash.new(0)
collection = context[@collection_name]

View File

@@ -29,7 +29,7 @@ module Liquid
end
def render(context)
context.errors += @warnings if @warnings
context.errors.concat(@warnings) if @warnings
context.stack do
@blocks.each do |block|
if block.evaluate(context)