helper-assets
v0.1.0
Published
Template helper for calculating the relative path to an assets or public directory.
Downloads
2
Readme
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
[object Object]
License
Copyright (c) 2014 Jon Schlinkert
Released under the MIT licenses
This file was generated by verb on November 07, 2014.