0.0
Repository is archived
No commit activity in last 3 years
No release in over 3 years
Dassets engine for compiling LESS CSS v1
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 2.16.1

Runtime

~> 0.14.0
~> 1.1
 Project Readme

=== This has been archived and is not maintained. ===

Dassets::Lessv1

Dassets engine for compiling LESS CSS using the 1.x.x ruby compiler.

Usage

Register the engine:

# in config/assets.rb
require 'dassets'
require 'dassets-lessv1'

Dassets.configure do |c|

  c.source "/path/to/assets") do |s|

    # register the Lessv1 engine to your source extension
    c.engine 'less', Dassets::Lessv1::Engine

  end

end

Put your .less source files in your source path. Dassets will compile their content using the 1.x.x LESS ruby compiler, switch their extension to .css, and write the output to the output path.

Why LESS 1.x.x?

Less v1 worked great back in the day and still works great today. This is for those who need to use the older version or don't want the latest js-based implementation (and its dependencies) and don't mind running the older version.

Want to use LESS v2? Write an engine for it and it'll get mentioned it here.

Installation

Add this line to your application's Gemfile:

gem 'dassets-lessv1'

And then execute:

$ bundle

Or install it yourself as:

$ gem install dassets-lessv1

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request