Sha256: 2aff892ee4c199c4a55cb35933b6c9f3534b9b6576dfc8dfc37c0ba42de1a7eb
Contents?: true
Size: 634 Bytes
Versions: 1
Compression:
Stored size: 634 Bytes
Contents
LESS_INIT = (<<-LESS).gsub(/^ {6}/, '') # 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' LESS def setup_stylesheet require_dependencies 'less', 'rack-less' initializer :less, LESS_INIT empty_directory destination_root('/app/stylesheets') end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
padrino-gen-0.10.2 | lib/padrino-gen/generators/components/stylesheets/less.rb |