Class: Sinatra::AssetPack::SassEngine

Inherits:
Engine
  • Object
show all
Defined in:
lib/sinatra/assetpack/engines/sass.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/sass.rb', line 3

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