mirror of
https://github.com/kemko/liquid.git
synced 2026-01-06 18:25:41 +03:00
Proper warning support
This commit is contained in:
@@ -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]
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user