Sha256: 3cee2e709522ad6285f7a79e48d49a90aaa38214db6b2a4f5ddc81078989a905

Contents?: true

Size: 376 Bytes

Versions: 2

Compression:

Stored size: 376 Bytes

Contents

module Liquid
  class Raw < Block
    def parse(tokens)
      @nodelist ||= []
      @nodelist.clear

      while token = tokens.shift
        if token =~ FullToken
          if block_delimiter == $1
            end_tag
            return
          end
        end
        @nodelist << token if not token.empty?
      end
    end
  end

  Template.register_tag('raw', Raw)
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
locomotive_liquid-2.4.2 lib/liquid/tags/raw.rb
locomotive_liquid-2.4.1 lib/liquid/tags/raw.rb