0.1.0 • Published 9 years ago
helper-assets v0.1.0
helper-assets
Template helper for calculating the relative path to an assets or public directory.
Install
Install with npm
npm i helper-assets --save
Run tests
npm test
Example usage
This should work with any engine, here are a few examples
With template
template.helper('assets', require('helper-assets'));
With assemble
assemble.helper('assets', require('helper-assets'));
With verb
verb.helper('assets', require('helper-assets'));
With handlebars:
var handlebars = require('handlebars');
handlebars.registerHelper('assets', require('helper-assets'));
Contributing
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue
Author
License
Copyright (c) 2014 Jon Schlinkert
Released under the MIT licenses
This file was generated by verb on November 07, 2014.
0.1.0
9 years ago