Method: Liquid::For#parse
- Defined in:
- lib/liquid/tags/for.rb
#parse(tokens) ⇒ Object
40 41 42 43 44 45 46 47 48 49 50 |
# File 'lib/liquid/tags/for.rb', line 40 def parse(tokens) if parse_body(@for_block, tokens) parse_body(@else_block, tokens) end if blank? @else_block&.remove_blank_strings @for_block.remove_blank_strings end @else_block&.freeze @for_block.freeze end |