Sha256: f2d5b1c543bb83aa7f0fef0988498352e85cd9f599d292d7b174c2b154d1e25c
Contents?: true
Size: 605 Bytes
Versions: 28
Compression:
Stored size: 605 Bytes
Contents
module Locomotive module Liquid module Tags class Hybrid < ::Liquid::Block def parse(tokens) nesting = 0 tokens.each do |token| next unless token =~ IsTag if token =~ FullToken if nesting == 0 && $1 == block_delimiter @render_as_block = true super return elsif $1 == block_name nesting += 1 elsif $1 == block_delimiter nesting -= 1 end end end end end end end end
Version data entries
28 entries across 28 versions & 2 rubygems