github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

karsthammer / less-rails

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 16
    • 3
  • Source
  • Commits
  • Network (3)
  • Issues (0)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (1)
    • master ✓
  • Tags (0)
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

Rails plugin for using the less css framework (http://www.lesscss.org) — Read more

  cancel

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

Updated to support Less 1.2.20 
tjh (author)
Wed Jan 06 11:57:25 -0800 2010
karsthammer (committer)
Thu Jan 07 05:12:08 -0800 2010
commit  46120446384afa24fad8375500280f3b0ee7b239
tree    fffcf9f4fafa644b2b858981cb05a9a0df10077d
parent  3973112de16d8982ab3f322783221f8fef60bb2f
less-rails /
name age
history
message
file README Loading commit data...
file Rakefile
file init.rb
directory lib/
directory tasks/
directory test/
README
less-rails
==========

Plugin for Rails to automatically generate css templates out of less (http://www.lesscss.org) templates.

For this to work you need to have the less gem:
  sudo gem install less

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.

==========

Copyright (c) 2009, Karst Hammer <karst (at) motorzweefschool (dot) demon (dot) nl>
All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the 
following conditions are met:

    * Redistributions of source code must retain the above copyright notice, this list of conditions and the following 
    disclaimer.
    * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the 
    following disclaimer in the documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, 
INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server