Commit Graph

11 Commits

Author SHA1 Message Date
Matthew Dean
809dc509f3 Arbitrary (non-falsey) values returned from functions are cast as Anonymous nodes 2017-01-06 19:39:23 -08:00
Matthew Dean
39150d513a Simplified API on less object
e.g. "less.Ruleset()" instead of "new less.tree.Ruleset()"

Auto-casting of string values into nodes for AtRule, Declaration, Selector, Value
e.g. "less.Selector('&.a')" instead of "new tree.Selector(new tree.Element(new tree.Combinator('&'), '.a'))"
2016-07-19 01:30:34 -07:00
Matthew Dean
a3e43acb26 Pass function registry to plugin install()
- Create Anonymous nodes from non-null (but non-Node) function return values
- Allow empty Anonymous nodes to collapse on output
2016-07-15 16:05:20 -07:00
Matthew Dean
ad57737ce0 All tests passing for @plugin
- Inline JavaScript disabled by default
- Deprecated "preprocessor" option removed (preprocessor plugins still valid)
2016-07-12 22:26:39 -07:00
Matthew Dean
270fd097c9 Plugin loader set up for lessc, node, and browser 2016-07-06 13:26:25 -07:00
Matthew Dean
bd14f14709 Rename @plugin to @use extensions 2016-06-24 20:36:00 -07:00
Matthew Dean
d061bdb2f1 Added tests for valid and invalid nodes returned by functions 2016-03-05 14:31:13 -07:00
Matthew Dean
6e97db84b3 Tests passing for creating directives 2016-03-04 14:10:53 -07:00
Matthew Dean
87f8b2d43e Add test demonstrating arguments and semi-colon separators 2016-01-26 17:10:15 -08:00
Matthew Dean
7f535a891d Allow root functions defined via @plugin 2016-01-26 16:54:51 -08:00
rjgotten
4d17c8b35d Fix plugin scope for mixins, directives and detached rulesets
Fixed scope for plugins to apply correctly for mixins, directives and
detached rulesets.
Updated plugin unit tests to be more comprehensive
2015-03-20 16:41:05 +01:00