Sha256: c55c7ab66f390e2d8debd2d10630cc1abe27782509cb264c64c660ebf7cb5e25
Contents?: true
Size: 242 Bytes
Versions: 22
Compression:
Stored size: 242 Bytes
Contents
module Sinatra::AssetPack class LessEngine < Engine def css(str, options={}) Tilt.new("less", {:style => :compressed}) { str }.render rescue LoadError nil end end Compressor.register :css, :less, LessEngine end
Version data entries
22 entries across 22 versions & 2 rubygems
Version | Path |
---|---|
sinatra-assetpack-0.1.2 | lib/sinatra/assetpack/engines/less.rb |
sinatra-assetpack-0.1.1 | lib/sinatra/assetpack/engines/less.rb |