Merge branch 'master' into styling-fixes-1

This commit is contained in:
Mike Angell
2019-09-04 14:26:27 +10:00
committed by GitHub
+2 -2
View File
@@ -1,13 +1,13 @@
module Liquid module Liquid
class Render < Tag class Render < Tag
Syntax = /(#{QuotedString})#{QuotedFragment}*/o SYNTAX = /(#{QuotedString})#{QuotedFragment}*/o
attr_reader :template_name_expr, :attributes attr_reader :template_name_expr, :attributes
def initialize(tag_name, markup, options) def initialize(tag_name, markup, options)
super 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) template_name = Regexp.last_match(1)