class Liquid::Include
def initialize(tag_name, markup, options)
def initialize(tag_name, markup, options) super if markup =~ SYNTAX template_name = Regexp.last_match(1) variable_name = Regexp.last_match(3) @alias_name = Regexp.last_match(5) @variable_name_expr = variable_name ? parse_expression(variable_name) : nil @template_name_expr = parse_expression(template_name) @attributes = {} markup.scan(TagAttributes) do |key, value| @attributes[key] = parse_expression(value) end else raise SyntaxError, options[:locale].t("errors.syntax.include") end end