Go to file
2010-06-16 19:02:50 -04:00
benchmark benchmark with optimization: 3 2010-06-11 21:46:12 -04:00
bin fix lessc optimization parsing 2010-06-16 18:25:40 -04:00
build (doc) comments 2010-06-15 18:56:16 -04:00
dist (dist) build 1.0.18 2010-06-16 19:00:58 -04:00
lib/less (dist) version bump 2010-06-16 18:59:07 -04:00
test fix comments in mixins. 2010-06-16 02:13:59 -04:00
LICENSE moved to apache license 2010-03-04 14:46:41 -05:00
Makefile (dist) require() goes in its own file 2010-06-15 18:54:46 -04:00
package.json (dist) version bump 2010-06-16 18:59:07 -04:00
README.md (doc) updated READMe 2010-06-16 19:02:50 -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

Get the pre-built version from the dist/ folder, and include it as such:

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

Note the rel="stylesheet/less" for all stylesheets you want to parse with LESS.

installation

In node:

$ npm install less