Class | Sass::Plugin::Rack |
In: |
lib/sass/plugin/rack.rb
|
Parent: | Object |
Rack middleware for compiling Sass code.
## Activate
require 'sass/plugin/rack' use Sass::Plugin::Rack
## Customize
Sass::Plugin.options.merge( :cache_location => './tmp/sass-cache', :never_update => environment != :production, :full_exception => environment != :production)
{file:SASS_REFERENCE.md#options See the Reference for more options}.
## Use
Put your Sass files in `public/stylesheets/sass`. Your CSS will be generated in `public/stylesheets`, and regenerated every request if necessary. The locations and frequency {file:SASS_REFERENCE.md#options can be customized}. That‘s all there is to it!