diff --git a/lib/liquid/tags/render.rb b/lib/liquid/tags/render.rb index d728898..d9b8002 100644 --- a/lib/liquid/tags/render.rb +++ b/lib/liquid/tags/render.rb @@ -1,13 +1,13 @@ module Liquid class Render < Tag - Syntax = /(#{QuotedString})#{QuotedFragment}*/o + SYNTAX = /(#{QuotedString})#{QuotedFragment}*/o attr_reader :template_name_expr, :attributes def initialize(tag_name, markup, options) super - raise SyntaxError, options[:locale].t("errors.syntax.render".freeze) unless markup =~ Syntax + raise SyntaxError, options[:locale].t("errors.syntax.render".freeze) unless markup =~ SYNTAX template_name = Regexp.last_match(1)