Module: Slim::Embedded::Minify::Tag
- Included in:
- Javascript, SassEngine, TagEngine
- Defined in:
- lib/slim/embedded/minify/tag.rb
Overview
Minify embedded tag code in Slim templates.
Constant Summary collapse
- CSS_ENGINES =
i[css sass scss less].freeze
Instance Method Summary collapse
Instance Method Details
#on_slim_embedded(engine, body, attrs) ⇒ Object
10 11 12 13 |
# File 'lib/slim/embedded/minify/tag.rb', line 10 def (engine, body, attrs) body = minify(body) if CSS_ENGINES.include?(engine) super(engine, body, attrs) end |