0.25.0 • Published 11 years ago

roole-evaluator v0.25.0

Weekly downloads
31
License
-
Repository
github
Last release
11 years ago

roole-evaluator

Convert Roole AST to CSS AST.

It eliminates constructs that cannot exist in CSS (e.g., @if, @for, variables, etc).

Example

var parser = require('roole-parser');
var evaluator = require('roole-parser');

var ast = parser.parse('body { margin: 0 }');
evaluator.evaluate(ast).then(function (ast) {
	console.log(ast);
});

API

var promise = evaluator.evaluate(ast, [options]);
  • ast - Roole AST
  • promise - A promise whose fulfilling value is the CSS AST
  • options - An object literal supporting these options: * imports (default: {}) - An object literal containing files to be imported, keys are file paths, values are the contents. When a imported file matches a file path, the content will be used directly, and no external request is generated.
0.25.0

11 years ago

0.24.0

11 years ago

0.23.3

11 years ago

0.23.2

11 years ago

0.23.1

11 years ago

0.23.0

11 years ago

0.22.0

11 years ago

0.21.0

11 years ago

0.20.0

11 years ago

0.19.0

11 years ago

0.18.0

11 years ago

0.17.0

11 years ago

0.16.0

11 years ago

0.15.0

11 years ago

0.14.0

11 years ago

0.13.0

11 years ago

0.12.0

11 years ago

0.11.0

11 years ago

0.10.0

11 years ago

0.9.0

11 years ago

0.8.0

11 years ago

0.7.0

11 years ago

0.6.0

11 years ago

0.5.0

11 years ago

0.4.0

11 years ago

0.3.0

11 years ago

0.2.0

11 years ago

0.1.0

11 years ago