handlebars-helpers
Version:
More than 130 Handlebars helpers in ~20 categories. Helpers can be used with Assemble, Generate, Verb, Ghost, gulp-handlebars, grunt-handlebars, consolidate, or any node.js/Handlebars project.
25 lines (20 loc) • 394 B
JavaScript
var helpers = module.exports;
/**
* Get the current year.
*
* ```handlebars
* {{year}}
* <!-- 2017 -->
* ```
* @exposes year as year
* @api public
*/
helpers.year = require('year');
/**
* Use [moment][] as a helper. See [helper-date][] for more details.
*
* @exposes helper-date as moment
* @api public
*/
helpers.moment = helpers.date = require('helper-date');
;