Module: Sinatra::AutoSass

Defined in:
lib/sinatra/autosass.rb

Class Method Summary collapse

Class Method Details

.registered(app) ⇒ Object



6
7
8
9
10
11
12
13
14
15
16
17
18
# 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