Sha256: 7324a82537677b4b5b19f75cb598bd2a56f66606ac389eaaed5cc96a1eb4ce71
Contents?: true
Size: 636 Bytes
Versions: 4
Compression:
Stored size: 636 Bytes
Contents
module Liquid class Document < BlockBody def self.parse(tokens, options) doc = new doc.parse(tokens, options) doc end def parse(tokens, options) super do |end_tag_name, end_tag_params| unknown_tag(end_tag_name, options) if end_tag_name end end def unknown_tag(tag, options) case tag when 'else'.freeze, 'end'.freeze raise SyntaxError.new(options[:locale].t("errors.syntax.unexpected_outer_tag".freeze, :tag => tag)) else raise SyntaxError.new(options[:locale].t("errors.syntax.unknown_tag".freeze, :tag => tag)) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems