Go to file
2010-06-13 02:52:51 -04:00
benchmark benchmark with optimization: 3 2010-06-11 21:46:12 -04:00
bin better error handling 2010-06-11 21:46:24 -04:00
build (dist) fix build header license 2010-06-13 02:52:51 -04:00
dist (dist) make less 2010-06-11 21:48:08 -04:00
lib/less better error handling 2010-06-11 21:46:24 -04:00
test (test) mixin calls throw an error now, if no patterns match 2010-06-07 18:22:23 -04:00
LICENSE moved to apache license 2010-03-04 14:46:41 -05:00
Makefile (dist) fix version extraction in Makefile 2010-06-07 05:08:52 -04:00
package.json (dist) version bump 2010-06-11 21:46:43 -04:00
README.md (doc) added link to download section 2010-05-26 12:56:07 -04:00

less.js

about

less.js is the next evolution of LESS, eventually, it will become LESS 2.0. less.js is a complete rewrite of LESS in JavaScript, and will be able to run directly in the browser, as well as on the server, with node.js.

where do I get it?

Go to the Downloads section, and get the latest version:

http://github.com/cloudhead/less.js/downloads

synopsis

in node.js

var less = require('less');

less.render(".class { width: 10px * 2 }", function (e, css) {
    sys.puts(css); // .class { width: 20px }
});

via the command-line (requires node)

bin/lessc style.less

in the browser

First, run make less in the command line. It will the build the less.js file in dist/. Then, you can use it as such:

<link rel="stylesheet/less" href="main.less" type="text/css">
<script src="less.js"></script>

To build a minified version, run make min

installation

In node:

$ npm install less