Less Rails plugin
Plugin details
Documentation
ruby script/plugin install git://github.com/karsthammer/less-rails.git
This plugin provides you with some configuration options that can be set in either an initializer or an environment
file.
The options can be set like this:
Less::Plugin.options[:template_location] = "#{RAILS_ROOT}/app/stylesheets" Less::Plugin.options[:css_location] = "#{RAILS_ROOT}/public/stylesheets" Less::Plugin.options[:update] = :when_changed Less::Plugin.options[:compress] = false
A quick description of the options:
* :template_location is the location where the *.less files are to be found.
* :css_location is the location where the generated *.css files are to be put.
* :update defines when to update the *.css files, you have three options:
** :never : never update the css files automatically.
** :when_changed : update the css files when the corresponding less file is newer than the generated css file.
** :always : update the css files on every request.
* :compress : turns less's built-in compress functionality on or off.
The options as listed in the example code are the defaults that less-rails uses.
Further Documentation
There is currently no advanced documentation for this plugin.
New documentationEdit plugin | (0 older versions) | Last edited by: hardway, 8 months ago


