Package Exports
- engine-lodash
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (engine-lodash) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
engine-lodash 
Lo-Dash engine, consolidate.js style but with enhancements. Works with Assemble, express.js, engine-cache or any application that follows consolidate.js conventions.
Install
Install with npm:
npm i engine-lodash --save-dev
Usage
var lodash = require('engine-lodash');
API
.render
Lodash string support. Render the given str
and invoke the callback callback(err, str)
.
str
{String}options
{Object|Function}: or callback.callback
{Function}
var engine = require('engine-lodash');
engine.render('<%= name %>', {name: 'Jon'}, function (err, content) {
console.log(content); //=> 'Jon'
});
.renderSync
Render Lo-Dash or underscore templates synchronously.
str
{Object}: The string to render.options
{Object}: Object of options.returns
{String}: Rendered string.
var engine = require('engine-lodash');
engine.renderSync('<%= name %>', {name: 'Jon'});
//=> 'Jon'
.renderFile
Lodash file support. Render a file at the given filepath
and callback callback(err, str)
.
path
{String}options
{Object|Function}: or callback function.callback
{Function}
var engine = require('engine-lodash');
engine.renderFile('foo/bar/baz.tmpl', {name: 'Jon'});
//=> 'Jon'
Author
Jon Schlinkert
Brian Woodward
License
Copyright (c) 2015 Jon Schlinkert
Released under the MIT license
This file was generated by verb on February 01, 2015.