Class: Tipsy::Compressors::CssCompressor
- Inherits:
-
Object
- Object
- Tipsy::Compressors::CssCompressor
- Defined in:
- lib/tipsy/compressors/css_compressor.rb
Instance Method Summary collapse
Instance Method Details
#compress(css) ⇒ Object
6 7 8 9 |
# File 'lib/tipsy/compressors/css_compressor.rb', line 6 def compress(css) css_style = Tipsy::Site.config.compile.compress_css ? :compressed : :compact Sass::Engine.new(css, :syntax => :scss, :cache => false, :read_cache => false, :line_comments => false, :style => css_style).render end |