class Sass::Plugin::Rack

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

def call(env)

Returns:
  • ((#to_i, {String => String}, Object)) - The Rack response

Parameters:
  • env () -- The Rack request environment
def call(env)
  if @dwell.nil? || Time.now.to_f > @check_after
    Sass::Plugin.check_for_updates
    @check_after = Time.now.to_f + @dwell if @dwell
  end
  @app.call(env)
end

def initialize(app, dwell = 1.0)

Parameters:
  • dwell (Float) -- See \{#dwell}
  • app (#call) -- The Rack application
def initialize(app, dwell = 1.0)
  @app = app
  @dwell = dwell
  @check_after = Time.now.to_f
end