Class: Sinatra::AssetPack::LessEngine

Inherits:
Engine
  • Object
show all
Defined in:
lib/sinatra/assetpack/engines/less.rb

Instance Method Summary collapse

Methods inherited from Engine

#sys

Instance Method Details

#css(str, options = {}) ⇒ Object



3
4
5
6
7
# File 'lib/sinatra/assetpack/engines/less.rb', line 3

def css(str, options={})
  Tilt.new("less", {:style => :compressed}) { str }.render
rescue LoadError
  nil
end