Template helper to resolve the path to a file in node_modules. This is mostly useful during development.
Refactored to return an object, so the results of the helper can be passed to other helpers that require more information.
npm
Install withnpm i helper-resolve --save
Usage
var resolve = ;var Handlebars = ; handlebars;handlebars//=> '<script src="node_modules/jquery/dist/jquery.js"></script>' handlebars//=> 'http://jquery.com'
Assemble example
Register the helper with assemble v0.6.x to use with any template engine:
var assemble = ;assemble;
async helper
assemble;
Run 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
Author
Jon Schlinkert
License
Copyright (c) 2015 Jon Schlinkert
Released under the MIT license
This file was generated by verb-cli on April 19, 2015.