mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-18 18:30:40 -07:00
Improve disabled tag error output
This commit is contained in:
@@ -26,4 +26,4 @@
|
||||
argument:
|
||||
include: "Argument error in tag 'include' - Illegal template name"
|
||||
disabled:
|
||||
tag: "usage has been disabled in this context."
|
||||
tag: "usage is not allowed in this context"
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
module Liquid
|
||||
class Render < Tag
|
||||
SYNTAX = /(#{QuotedString})#{QuotedFragment}*/o
|
||||
DISABLED_TAGS = %w(include)
|
||||
DISABLED_TAGS = %w(include).freeze
|
||||
|
||||
attr_reader :template_name_expr, :attributes
|
||||
|
||||
|
||||
Reference in New Issue
Block a user