Sha256: f44763927af4cc0c6150575e0cfe10424864229c3bf4458fb3260cd12210fc93
Contents?: true
Size: 567 Bytes
Versions: 3
Compression:
Stored size: 567 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) root_node = ::Sass::SCSS::CssParser.new(css, 'jammit-combined-input').parse root_node.options = {:style => :compressed} root_node.render.strip end end
Version data entries
3 entries across 3 versions & 3 rubygems
Version | Path |
---|---|
jammit-0.6.6 | lib/jammit/sass_compressor.rb |
sluukkonen-jammit-0.6.6 | lib/jammit/sass_compressor.rb |
jammit-instructure-0.6.6 | lib/jammit/sass_compressor.rb |