mirror of
https://github.com/kemko/liquid.git
synced 2026-01-06 10:15:40 +03:00
Merge loops
This commit is contained in:
@@ -21,10 +21,10 @@ module Liquid
|
||||
def parse(tokens)
|
||||
body = new_body
|
||||
body = @blocks.last.attachment while parse_body(body, tokens)
|
||||
if blank?
|
||||
@blocks.each { |condition| condition.attachment.remove_blank_strings }
|
||||
@blocks.each do |condition|
|
||||
condition.attachment.remove_blank_strings if blank?
|
||||
condition.attachment.freeze
|
||||
end
|
||||
@blocks.each { |condition| condition.attachment.freeze }
|
||||
end
|
||||
|
||||
def nodelist
|
||||
|
||||
@@ -31,10 +31,10 @@ module Liquid
|
||||
def parse(tokens)
|
||||
while parse_body(@blocks.last.attachment, tokens)
|
||||
end
|
||||
if blank?
|
||||
@blocks.each { |condition| condition.attachment.remove_blank_strings }
|
||||
@blocks.each do |block|
|
||||
block.attachment.remove_blank_strings if blank?
|
||||
block.attachment.freeze
|
||||
end
|
||||
@blocks.each { |block| block.attachment.freeze }
|
||||
end
|
||||
|
||||
def unknown_tag(tag, markup, tokens)
|
||||
|
||||
Reference in New Issue
Block a user