Class: Sliq::Tags
- Inherits:
-
Slim::Filter
- Object
- Slim::Filter
- Sliq::Tags
- Defined in:
- lib/sliq.rb
Instance Method Summary collapse
Instance Method Details
#on_liquid_tag(name, args, block) ⇒ Object
34 35 36 37 38 39 40 41 42 43 |
# File 'lib/sliq.rb', line 34 def on_liquid_tag(name, args, block) if empty_exp?(block) [:static, "{% #{name} #{args} %}"] else [:multi, [:static, "{% #{name} #{args} %}\n"], block, [:static, "\n{% end#{name} %}"]] end end |