{%= description %}
With Handlebars:
Results in:
<h1>Heading</h1>
<blockquote>
<p>this is markdown</p>
</blockquote>
<p>foo bar baz</p>
{%= include("install-npm", {save: true}) %}
This should work with any engine, here are a few examples
Register the helper for use with any template engine
template.helper('{%= nickname %}', require('{%= name %}'));
To register the helper for use with assemble v0.6.x:
assemble.helper('{%= nickname %}', require('{%= name %}'));
Register the helper for use with verb:
var verb = require('verb');
verb.helper('{%= nickname %}', require('{%= name %}'));
var handlebars = require('handlebars');
handlebars.registerHelper('{%= nickname %}', require('{%= name %}'));
var {%= nickname %} = require('{%= name %}');
// as a mixin
_.mixin({{%= nickname %}: {%= nickname %}});
_.template('<%= _.{%= nickname %}("# heading") %>', {});
//=> '<h1>heading</h1>\n'
// passed on the context
_.template('<%= {%= nickname %}("# heading") %>', {{%= nickname %}: {%= nickname %}});
//=> '<h1>heading</h1>\n'
// as an import
var settings = {imports: {{%= nickname %}: {%= nickname %}}};
_.template('<%= {%= nickname %}("# heading") %>', {}, settings);
//=> '<h1>heading</h1>\n'
npm test
Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue]({%= bugs.url %})
To request or contribute a helper to the github.com/helpers org, please read this contributing guide to get started.
{%= include("author") %}
{%= copyright() %} {%= license() %}
{%= include("footer") %}