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.3.5 lib/sinatra/assetpack/engines/less.rb
sinatra-assetpack-0.3.3 lib/sinatra/assetpack/engines/less.rb
sinatra-assetpack-0.3.2 lib/sinatra/assetpack/engines/less.rb
sinatra-assetpack-0.3.1 lib/sinatra/assetpack/engines/less.rb
sinatra-assetpack-0.3.0 lib/sinatra/assetpack/engines/less.rb
sinatra-assetpack-0.2.8 lib/sinatra/assetpack/engines/less.rb
sinatra-assetpack-0.2.7 lib/sinatra/assetpack/engines/less.rb
sinatra-assetpack-0.2.6 lib/sinatra/assetpack/engines/less.rb
sinatra-assetpack-0.2.5 lib/sinatra/assetpack/engines/less.rb
sinatra-assetpack-0.2.4 lib/sinatra/assetpack/engines/less.rb
sinatra-assetpack-0.2.3 lib/sinatra/assetpack/engines/less.rb
sinatra-assetpack-0.2.2 lib/sinatra/assetpack/engines/less.rb
sinatra-assetpack-0.2.1 lib/sinatra/assetpack/engines/less.rb
sinatra-assetpack-0.2.0 lib/sinatra/assetpack/engines/less.rb
sinatra-assetpack-0.1.7 lib/sinatra/assetpack/engines/less.rb
sundawg-sinatra-assetpack-fork-0.1.6 lib/sinatra/assetpack/engines/less.rb
sinatra-assetpack-0.1.6 lib/sinatra/assetpack/engines/less.rb
sinatra-assetpack-0.1.5 lib/sinatra/assetpack/engines/less.rb
sinatra-assetpack-0.1.4 lib/sinatra/assetpack/engines/less.rb
sinatra-assetpack-0.1.3 lib/sinatra/assetpack/engines/less.rb