Sha256: 15aef38dbe506666f55535e3a2f095c69ec7a6848d1fd8cd3b7ebd1bbe3deb93

Contents?: true

Size: 377 Bytes

Versions: 1

Compression:

Stored size: 377 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

1 entries across 1 versions & 1 rubygems

Version Path
locomotive_liquid-2.2.3 lib/liquid/tags/raw.rb