class Liquid::Raw

Constants

FullTokenPossiblyInvalid

Public Instance Methods

parse(tokens) click to toggle source
# File lib/liquid/tags/raw.rb, line 5
def parse(tokens)
  @nodelist ||= []
  @nodelist.clear
  while token = tokens.shift
    if token =~ FullTokenPossiblyInvalid
      @nodelist << $1 if $1 != ""
      if block_delimiter == $2
        end_tag
        return
      end
    end
    @nodelist << token if not token.empty?
  end
end