Correct if-statement nodelist.

The nodelist returned by all tags is a list of containing nodes, except for the if tag.  This correct that inconsistency
This commit is contained in:
Nick Jones
2013-06-12 09:13:41 -07:00
committed by James Tucker
parent e8b41c8856
commit ca5bc5d75b

View File

@@ -19,6 +19,10 @@ module Liquid
super
end
def nodelist
@blocks.map(&:attachment).flatten
end
def unknown_tag(tag, markup, tokens)
if ['elsif', 'else'].include?(tag)
push_block(tag, markup)