Go to file
2011-01-04 13:07:27 -05:00
benchmark benchmark script can be passed files. also use optimization level 2, cause 3 doesn't exist anymore 2010-06-20 22:17:41 -04:00
bin Adding rendering machinery 2011-01-04 13:07:27 -05:00
build (doc) comments 2010-06-15 18:56:16 -04:00
dist (build) 1.0.40 2010-11-30 11:51:55 -05:00
lib/less Adding rendering machinery 2011-01-04 13:07:27 -05:00
test Less-confusing test file 2011-01-03 15:28:45 -05:00
LICENSE moved to apache license 2010-03-04 14:46:41 -05:00
Makefile (dist) new dist commands to Makefile 2010-07-08 00:55:27 +02:00
package.json (dist) version bump to 1.0.40 2010-11-30 11:51:20 -05:00
README.md Adding a bit to the docs 2010-12-01 15:56:08 -05:00

mess is an attempt to use less.js to compile cascadenik-formatted styles.

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?

The latest builds are in the dist/ folder.

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