npm stats
  • Search
  • About
  • Repo
  • Sponsor
  • more
    • Search
    • About
    • Repo
    • Sponsor

Made by Antonio Ramirez

helper-assets

0.1.0

@jonschlinkert

npmHomeRepoSnykSocket
Downloads:92
$ npm install helper-assets
DailyWeeklyMonthlyYearly

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]

  • github/jonschlinkert
  • twitter/jonschlinkert

License

Copyright (c) 2014 Jon Schlinkert
Released under the MIT licenses


This file was generated by verb on November 07, 2014.