Sha256: 3f86f805c426ccb329feee74ef504550c0c5a763bd0ea876822df5a30c7058af
Contents?: true
Size: 502 Bytes
Versions: 2
Compression:
Stored size: 502 Bytes
Contents
module Csso class Compressor def self.call(input) require 'csso' #TODO: settings? #TODO: handle metadata somehow? { data: Csso.optimize(input[:data], true) } end # sprockets 2: def initialize path, &block @block = block end def render context, opts={} self.class.call({data: @block.call})[:data] end class Legacy def self.compress data Compressor.call(data: data)[:data] end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
csso-rails-0.4.1 | lib/csso/compressor.rb |
csso-rails-0.4.0 | lib/csso/compressor.rb |