mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-20 03:10:39 -07:00
remove include Liquid from the class CustomInclude and substitute QuotedFragment with Liquid::QuotedFragment
This commit is contained in:
@@ -192,8 +192,7 @@ class IncludeTagTest < Test::Unit::TestCase
|
|||||||
end
|
end
|
||||||
|
|
||||||
class CustomInclude < Liquid::Tag
|
class CustomInclude < Liquid::Tag
|
||||||
include Liquid
|
Syntax = /(#{Liquid::QuotedFragment}+)(\s+(?:with|for)\s+(#{Liquid::QuotedFragment}+))?/o
|
||||||
Syntax = /(#{QuotedFragment}+)(\s+(?:with|for)\s+(#{QuotedFragment}+))?/o
|
|
||||||
|
|
||||||
def initialize(tag_name, markup, tokens)
|
def initialize(tag_name, markup, tokens)
|
||||||
markup =~ Syntax
|
markup =~ Syntax
|
||||||
|
|||||||
Reference in New Issue
Block a user