Consolidate-style engine for rendering .less files.
npm install engine-less> Consolidate-style engine for rendering .less files.
Install with npm
``sh`
$ npm i engine-less --save
* assemble: Static site generator for Grunt.js, Yeoman and Node.js. Used by Zurb Foundation, Zurb Ink, H5BP/Effeckt,… more | homepage
* consolidate: Template engine consolidation library | homepage
* engine-cache: express.js inspired template-engine manager. | homepage
* engines: Template engine library with fast, synchronous rendering, based on consolidate. | homepage
* template: Render templates using any engine. Supports, layouts, pages, partials and custom template types. Use template… more | homepage
* verb: Documentation generator for GitHub projects. Extremely powerful, easy to use, can generate anything from API… more | homepage
Less string support. Process the given str of less and invoke the callback callback(err, css).
Params
* str {String}options
* {Object|Function}: or callback.callback
* {Function}
Example
`js`
var str = '@red: #900;\n.foo {color: @red;}';
engine.render(str, function (err, css) {
console.log(css);
//=> '.foo {\n color: #990000;\n}\n'
});
Less file support. Process a .less file at the given fp and callback callback(err, css).
Params
* filepath {String}options
* {Object|Function}: or callback function.callback
* {Function}
Example
`js``
var less = require('engine-less');
less.renderFile('my-styles.less', {}, function (err, css) {
console.log(css);
//=> '.aaa {\n color: blue;\n}\n'
});
Jon Schlinkert
+ github/jonschlinkert
+ twitter/jonschlinkert
Copyright © 2014-2015 Jon Schlinkert
Released under the MIT license.
*
_This file was generated by verb-cli on August 24, 2015._