helper-assets

0.1.0 • Public • Published

helper-assets NPM version

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.

Readme

Keywords

none

Package Sidebar

Install

npm i helper-assets

Weekly Downloads

1

Version

0.1.0

License

none

Last publish

Collaborators

  • doowb
  • jonschlinkert