class Liquid::Raw

Public Instance Methods

parse(tokens) click to toggle source
# File lib/liquid/tags/raw.rb, line 3
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