extract name

This commit is contained in:
Isha
2014-03-02 23:24:31 +00:00
parent a119e86fd0
commit 02525f258e
3 changed files with 142 additions and 134 deletions
+11 -11
View File
@@ -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)