Class: Sinatra::AssetPack::LessEngine
- Defined in:
- lib/sinatra/assetpack/engines/less.rb
Instance Method Summary collapse
Methods inherited from Engine
Instance Method Details
#css(str, options = {}) ⇒ Object
3 4 5 6 7 |
# File 'lib/sinatra/assetpack/engines/less.rb', line 3 def css(str, ={}) Tilt.new("less", {:style => :compressed}) { str }.render rescue LoadError nil end |