Commit Graph

231 Commits

Author SHA1 Message Date
cloudhead
280d741b38 use a timer to check when the dom is ready, before showing errors 2010-04-26 14:22:37 -04:00
cloudhead
45789d8d19 automatically set less.env in certain conditions 2010-04-26 14:22:18 -04:00
cloudhead
5fad97e483 Local Storage caching, and .less loading from disk
- .less files can now be loaded directly from disk
- nice error messages
- use HTML 5 storage to cache parsing
2010-04-25 19:42:49 -04:00
cloudhead
e1062efa98 Overhaul of the error system
The parse() function no longer assumes the command-line is the output
device. We use less.writeError in node.js.
2010-04-25 19:39:21 -04:00
cloudhead
d56feee6f0 Support for pattern-matching on mixin calls. 2010-04-25 00:09:40 -04:00
cloudhead
2ebbf37c4b More accurate parse error messages
Because of the backtracking, we lose the previous point of failure.
The solution is to store the furthest point the parser has parsed to,
when backtracking, and using it when showing parse errors.
2010-04-25 00:06:45 -04:00
cloudhead
3047f7603e use a hash to store variables, fixes variable redifinition bug 2010-04-23 17:52:36 -04:00
cloudhead
fee1e305f0 fixed bug with passing variables to functions 2010-04-23 13:49:55 -04:00
cloudhead
d0b5f6f214 package.json update 2010-04-23 13:39:00 -04:00
cloudhead
83a47139f8 bumped version to 1.0.1 2010-04-23 13:38:43 -04:00
cloudhead
bdc8564ffe fixed readme 2010-04-23 13:37:31 -04:00
cloudhead
15f0589f6c Added a couple colour functions
saturate, desaturate, lighten, darken, greyscale.
2010-04-23 13:36:50 -04:00
cloudhead
7d27a181f8 Fixed HSL
HSL colors weren't working properly. The values weren't being normalized
to {0, 1}.
2010-04-23 13:35:36 -04:00
cloudhead
904d997730 the e() LESS function
used to escape strings in values.
Added Anonymous node to handle things like this.
2010-04-22 19:42:02 -04:00
cloudhead
e46e71a4d1 usage info v1.0 2010-04-22 19:15:11 -04:00
cloudhead
63923283fc refactored mixin.definition.eval 2010-04-22 13:47:01 -04:00
cloudhead
6f8fa2d858 Fixed mixin calls not working from dynamic mixins
Dynamic mixins aren't treated enough like Rulesets.
There is some code duplication which needs to be cleaned up,
ideally they should share a prototype.
2010-04-22 13:34:49 -04:00
cloudhead
25dbfb177a Fix dynamic mixins with nested rules
Dynamic mixins with more than one level of nesting wouldn't work.
This is now fixed. Also refactored mixin.definition.eval a little.
2010-04-22 13:07:41 -04:00
cloudhead
1e0cfe9ac1 Reorganized some of the parsing rule order
- Fix for "{" not parsing
- Use some backtracking when necessary,
  it's prettier than crazy lookaheads.
2010-04-21 10:12:29 -04:00
cloudhead
aa13ee058b use puts instead of writeError, which was removed 2010-04-21 10:11:34 -04:00
cloudhead
87e209ed8a less.js now works in firefox, safari and chrome 2010-04-01 22:37:59 -04:00
cloudhead
30f40222e7 Array.isArray compat 2010-04-01 22:37:29 -04:00
cloudhead
5d5024e70e @import with .css files no longer precompiles. This gives us some extra
flexibility.
2010-03-30 15:32:38 -04:00
cloudhead
c60c2da306 We aren't using adapters anymore. 2010-03-29 22:56:07 -04:00
cloudhead
e3df96762e quote 'import' so it doesn't freak out 2010-03-29 22:24:33 -04:00
cloudhead
11f71f32e7 added compat.js and tree.js to build, it now builds in dist/ 2010-03-29 22:24:09 -04:00
cloudhead
660d2f76ba fix optimization option wrongly scoped 2010-03-29 22:13:36 -04:00
cloudhead
be2e675b68 fix benchmark 2010-03-27 02:32:30 -04:00
cloudhead
b844de97e3 merge 2010-03-27 02:27:59 -04:00
cloudhead
0267de4fac removed lib/ext, moved lib/less.js to /index.js, moved Array/find to tree.find 2010-03-27 02:26:55 -04:00
cloudhead
f6312ba794 Created a compat.js file in build/, for browser compatiblity, moved trim() in
there. LESS builds to dist/ now.
2010-03-27 02:24:39 -04:00
cloudhead
fc616b4aa4 Doc for Call, Comments, Operation.. 2010-03-23 18:33:17 -04:00
cloudhead
374702c926 putting the operate function in operation.js, to facilitate access from browser code 2010-03-23 01:19:12 -04:00
cloudhead
f76f6984a9 functional browser based parsing + css node creation 2010-03-23 01:16:59 -04:00
cloudhead
dd9d2cbeb4 fix typo in browser.js 2010-03-22 23:24:05 -04:00
cloudhead
9b10608867 forgot to add importing to README 2010-03-22 23:20:24 -04:00
cloudhead
5c1f326287 no need for context passing 2010-03-22 23:15:25 -04:00
cloudhead
3f51a5f184 String/trim() 2010-03-22 23:13:47 -04:00
cloudhead
06bf75c3a2 optimization level is taken from env now 2010-03-22 23:13:24 -04:00
cloudhead
823d69fd67 browser.js init -- very basic browser support - Makefile also builds for browser now 2010-03-22 23:12:58 -04:00
cloudhead
05044028cf added render() convenience method. Returns an EventEmitter if no callback was passed. 2010-03-22 21:34:05 -04:00
cloudhead
d0b6573017 refactored the import mechanism, added some doc 2010-03-22 20:59:49 -04:00
cloudhead
a560c8bfbd allow for passing a context of evaluation to the importer 2010-03-22 20:59:11 -04:00
cloudhead
58fe832a67 updated README 2010-03-22 20:15:28 -04:00
cloudhead
5ea82f8588 removed unnecessary require 2010-03-22 20:15:06 -04:00
cloudhead
75efa14e05 remove makefile 2010-03-21 19:34:01 -04:00
cloudhead
4ad707ea8e asynchronous import functionality! All tests passing. 2010-03-21 19:18:47 -04:00
cloudhead
2b4b0cbdf6 made parser reentrant for import support 2010-03-21 19:17:37 -04:00
cloudhead
61a22c2d26 fixed typo in package.json 2010-03-19 20:17:04 -04:00
cloudhead
9a583ca6ca no need to pass starting values to toCSS() anymore 2010-03-19 20:14:35 -04:00