Wraps sass’ css compressor to use the same API as the rest of Jammit’s compressors.
Compresses css
using sass’ CSS parser, and returns the
compressed css.
# File lib/jammit/sass_compressor.rb, line 12 def compress(css) ::Sass::Engine.new(css, :syntax => :scss, :style => :compressed).render.strip end
Creates a new sass compressor. Jammit::SassCompressor doesn’t use any
options, the options
parameter is there for API compatibility.
# File lib/jammit/sass_compressor.rb, line 7 def initialize(options = {}) end