Sha256: 8e46b8b38c9cf22ee5dcc47336d85bb57922ecdececb688819302e06ac4591d8

Contents?: true

Size: 242 Bytes

Versions: 28

Compression:

Stored size: 242 Bytes

Contents

module Sinatra::AssetPack
  class SassEngine < Engine
    def css(str, options={})
      Tilt.new("scss", {:style => :compressed}) { str }.render
    rescue LoadError
      nil
    end
  end

  Compressor.register :css, :sass, SassEngine
end

Version data entries

28 entries across 28 versions & 3 rubygems

Version Path
sinatra-assetpack-0.1.2 lib/sinatra/assetpack/engines/sass.rb
sinatra-assetpack-0.1.1 lib/sinatra/assetpack/engines/sass.rb
sinatra-assetpack-0.1.0 lib/sinatra/assetpack/engines/sass.rb
sinatra-assetpack-flexible-compression-0.0.1 lib/sinatra/assetpack/engines/sass.rb
sundawg-sinatra-assetpack-fork-0.0.12.pre1 lib/sinatra/assetpack/engines/sass.rb
sinatra-assetpack-0.0.12.pre1 lib/sinatra/assetpack/engines/sass.rb
sinatra-assetpack-0.0.11 lib/sinatra/assetpack/engines/sass.rb
sinatra-assetpack-0.0.10 lib/sinatra/assetpack/engines/sass.rb