JSPM

helper-lookup-deps

0.2.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3
  • Score
    100M100P100Q35577F
  • License

Collection of template helpers for the methods in lookup-deps.

Package Exports

  • helper-lookup-deps

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 (helper-lookup-deps) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

helper-lookup-deps NPM version Build Status

Collection of template helpers for the methods in lookup-deps.

Install with npm

npm i helper-lookup-deps --save

Example usage

Handlebars:

var lookup = require('helper-lookup-deps');

Handlebars

Register the helper:

var lookup = require('helper-lookup-deps');
handlebars.registerHelper('links', lookup.links);

Use the helper;

<!-- generate links to all related projects -->
{{links}}

<!-- pass an array on the context to generate 
links to only specified projects -->
{{links links}}

Template, Verb, or Assemble

Replace app with 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']) %}

Running tests

Install dev dependencies:

npm i -d && npm test

Contributing

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.

Author

Jon Schlinkert

License

Copyright (c) 2015 Jon Schlinkert
Released under the MIT license


This file was generated by verb-cli on February 26, 2015.