Revision: 17140
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at August 24, 2009 18:48 by brettbergeron
Initial Code
desc "Compiles all .less files in the stylesheets directory of a Rails application"
task :less do
require 'less'
directory = 'public/stylesheets/'
stylesheets = Dir.entries(directory)
stylesheets.each do |sheet|
if(File.extname(sheet) == ".less")
`lessc #{directory + sheet}`
end
end
end
Initial URL
http://brettbergeron.com
Initial Description
Code for a Rake task that allows compiles all LESS stylesheets (.less) contained within a single directory.
Initial Title
Rake Task for Compiling Less Sheets in Rails Directory
Initial Tags
css, rails, ruby, unix, linux
Initial Language
Ruby