$ npm install helper-lookup-depsCollection of template helpers for the methods in lookup-deps.
npm i helper-lookup-deps --save
Handlebars:
var lookup = require('helper-lookup-deps');
Register the helper:
var lookup = require('helper-lookup-deps');
handlebars.registerHelper('links', lookup.links);
Use the helper;
<!-- generate links to all related projects -->
<!-- pass an array on the context to generate
links to only specified projects -->
Replace
appwith whatever you're using
Register the helper:
var lookup = require('helper-lookup-deps');
app.helper('links', lookup.links);
Use the helper
// links to all related projects
{%= links() %}
// links to only specified projects
{%= links(['arr-diff']) %}
Install dev dependencies:
npm i -d && npm test
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue
To request or contribute a helper to the github.com/helpers org, please read this contributing guide first.
Jon Schlinkert
Copyright (c) 2015 Jon Schlinkert
Released under the MIT license
This file was generated by verb-cli on February 26, 2015.