mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-18 02:10:41 -07:00
extract name
This commit is contained in:
+11
-11
@@ -21,18 +21,18 @@ module Liquid
|
||||
@options = options || {}
|
||||
|
||||
|
||||
case @options[:error_mode] || Template.error_mode
|
||||
when :strict then strict_parse(markup)
|
||||
when :lax then lax_parse(markup)
|
||||
when :warn
|
||||
begin
|
||||
strict_parse(markup)
|
||||
rescue SyntaxError => e
|
||||
@warnings ||= []
|
||||
@warnings << e
|
||||
# case @options[:error_mode] || Template.error_mode
|
||||
# when :strict then strict_parse(markup)
|
||||
# when :lax then lax_parse(markup)
|
||||
# when :warn
|
||||
# begin
|
||||
# strict_parse(markup)
|
||||
# rescue SyntaxError => e
|
||||
# @warnings ||= []
|
||||
# @warnings << e
|
||||
lax_parse(markup)
|
||||
end
|
||||
end
|
||||
# end
|
||||
# end
|
||||
end
|
||||
|
||||
# def lax_parse(markup)
|
||||
|
||||
Reference in New Issue
Block a user