Sha256: 6c7e8c4c07ceeabaf70116ca67fb97e1c19709691968758773d7c16ad2c16cba

Contents?: true

Size: 888 Bytes

Versions: 15

Compression:

Stored size: 888 Bytes

Contents

less.rb
=======

The **dynamic** stylesheet language.

<http://lesscss.org>

about
-----

These are Ruby bindings for the next generation LESS, which is implemented in JavaScript

For more information, visit <http://lesscss.org>.

usage
------

less.rb exposes the `less.Parser` constructor to ruby code via `Less::Parser`. You can instate it
context free:

    parser = Less::Parser.new

or with configuration options:

    parser = Less::Parser.new :paths => ['./lib', 'other/lib'], :filename => 'mystyles.less'

Once you have a parser instantiated, you can parse code to get your AST !

    tree = parser.parse(".class {width: 1+1}") # => Less::Tree
    tree.to_css #=> .class {\n  width: 2;\n}\n
    tree.to_css(:compress => true) #=> .class{width:2;}

license
-------

less.rb is licensed under the same terms as less.js

See `lib/js/LICENSE` file.


> copyright 2011 Charles Lowell

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
less-2.0.12 README.md
less-2.0.11 README.md
less-2.0.10 README.md
less-2.0.9 README.md
less-2.0.8 README.md
less-2.0.8beta2 README.md
less-2.0.8beta1 README.md
less-2.0.7 README.md
less-2.0.6 README.md
less-2.0.5 README.md
less-2.0.4 README.md
less-2.0.3 README.md
less-2.0.2 README.md
less-2.0.1 README.md
less-2.0.0 README.md