Method: Liquid::Block#unknown_tag
- Defined in:
- lib/liquid/block.rb
#unknown_tag(tag, params, tokens) ⇒ Object
55 56 57 58 59 60 61 62 63 64 |
# File 'lib/liquid/block.rb', line 55 def unknown_tag(tag, params, tokens) case tag when 'else' raise SyntaxError, "#{block_name} tag does not expect else tag" when 'end' raise SyntaxError, "'end' is not a valid delimiter for #{block_name} tags. use #{block_delimiter}" else raise SyntaxError, "Unknown tag '#{tag}'" end end |