forked from less/less.js
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
5 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,11 @@ | ||
less.js | ||
======= | ||
|
||
about | ||
----- | ||
|
||
less.js is the next evolution of [LESS](http://lesscss.org), 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 } | ||
}); | ||
The **dynamic** stylesheet language. | ||
|
||
### via the command-line (requires node) | ||
<http://lesscss.org> | ||
|
||
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: | ||
about | ||
----- | ||
|
||
$ npm install less | ||
This is the JavaScript, and now official, stable version of LESS. |