module Sinatra::AutoSass

Public Class Methods

registered(app) click to toggle source
# File lib/sinatra/autosass.rb, line 6
def self.registered(app)
  app.set :options, 
          {
            :css_location => 'public/css',
            :template_location => 'public/sass',
            :syntax => :sass,
            :cache => true,
            :cache_location => '.tmp/sass-cache'
          }
  app.before do
    SassConvert.new(settings.options)
  end
end