Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 94fbd0c2fc
Fetching contributors…

Cannot retrieve contributors at this time

20 lines (18 sloc) 0.495 kb
module LessInitializer
def self.registered(app)
# Enables support for Less template reloading for rack.
# Store Less files by default within 'app/stylesheets/'
# See http://github.com/kelredd/rack-less for more details.
require 'rack/less'
# optional - use as necessary
Rack::Less.configure do |config|
config.compress = true
# other configs ...
end
app.use Rack::Less,
:root => app.root,
:source => 'stylesheets/',
:public => 'public/',
:hosted_at => '/stylesheets'
end
end
Jump to Line
Something went wrong with that request. Please try again.