Sha256: 964736c3ef88e01c397e2c305f07d4e8bd1d228594419727e4e7345eb706b6df

Contents?: true

Size: 495 Bytes

Versions: 1

Compression:

Stored size: 495 Bytes

Contents

# Wraps sass' css compressor to use the same API as the rest of
# Jammit's compressors.
class Jammit::SassCompressor
  # Creates a new sass compressor. Jammit::SassCompressor doesn't use
  # any options, the +options+ parameter is there for API
  # compatibility.
  def initialize(options = {})
  end

  # Compresses +css+ using sass' CSS parser, and returns the
  # compressed css.
  def compress(css)
    ::Sass::Engine.new(css, :syntax => :scss, :style => :compressed).render.strip
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jammit-0.7.0 lib/jammit/sass_compressor.rb