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-08-31 19:03:50 +00:00
committed by James Tucker
parent e8b41c8856
commit ca5bc5d75b
+4
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)