Sha256: 52640e059db7a59d806d64016d1ce013ff06256b1e08629b4f31243b1aab2bb5
Contents?: true
Size: 801 Bytes
Versions: 1
Compression:
Stored size: 801 Bytes
Contents
LESS_INIT = <<-LESS unless defined?(LESS_INIT) # 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 # config.cache = true # other configs ... end app.use Rack::Less, :root => Tennpipes.root, :source => 'app/stylesheets', :public => 'public', :hosted_at => 'stylesheets' LESS def setup_stylesheet require_dependencies 'less' require_dependencies 'rack-less' require_dependencies 'therubyracer' initializer :less, LESS_INIT empty_directory destination_root('/app/stylesheets') end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tennpipes-init-3.6.6 | lib/tennpipes-init/generators/components/stylesheets/less.rb |