Sha256: 58a6d5afc2d54696dd1fb7a06814603a30842e437714fdd1079f33f1fedf6e1f

Contents?: true

Size: 338 Bytes

Versions: 14

Compression:

Stored size: 338 Bytes

Contents

module Sinatra::AssetPack
  class SimpleEngine < Engine
    def css(str, options={})
      str.gsub! /[ \r\n\t]+/m, ' '
      str.gsub! %r{ *([;\{\},:]) *}, '\1'
      str
    end

    def js(str, options={})
      str
    end
  end

  Compressor.register :css, :simple, SimpleEngine
  Compressor.register :js,  :simple, SimpleEngine
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
sinatra-assetpack-0.3.5 lib/sinatra/assetpack/engines/simple.rb
sinatra-assetpack-0.3.3 lib/sinatra/assetpack/engines/simple.rb
sinatra-assetpack-0.3.2 lib/sinatra/assetpack/engines/simple.rb
sinatra-assetpack-0.3.1 lib/sinatra/assetpack/engines/simple.rb
sinatra-assetpack-0.3.0 lib/sinatra/assetpack/engines/simple.rb
sinatra-assetpack-0.2.8 lib/sinatra/assetpack/engines/simple.rb
sinatra-assetpack-0.2.7 lib/sinatra/assetpack/engines/simple.rb
sinatra-assetpack-0.2.6 lib/sinatra/assetpack/engines/simple.rb
sinatra-assetpack-0.2.5 lib/sinatra/assetpack/engines/simple.rb
sinatra-assetpack-0.2.4 lib/sinatra/assetpack/engines/simple.rb
sinatra-assetpack-0.2.3 lib/sinatra/assetpack/engines/simple.rb
sinatra-assetpack-0.2.2 lib/sinatra/assetpack/engines/simple.rb
sinatra-assetpack-0.2.1 lib/sinatra/assetpack/engines/simple.rb
sinatra-assetpack-0.2.0 lib/sinatra/assetpack/engines/simple.rb