hbs-helpers

Helpers for any handlebars projects. Btw, it can work without it.

npm install hbs-helpers
8 downloads in the last week
22 downloads in the last month

Helpers

NPM version Dependency Status devDependency Status

View helpers for any handlebars projects. For express 3 I prefer using express-hbs and for koa — koa-hbs. Btw, all helpers can work without handlebars.

Installation

$ npm install hbs-helpers

Configure for express-hbs

var hbs = require('express-hbs');
var helpers = require('hbs-helpers');

for (var helper in helpers) {
  hbs.registerHelper(helper, helpers[helper]);
}

Helpers

  • downsize (text[, options])
  • length (number)
  • formatdate (date[, options])
  • rusweek (date[, options])
  • formatyear (date)
  • timeago (date[, options])
  • formatmoney (number)
  • plural (count[, options])
  • rubles (number)
  • htmlescape (text)
  • urlencode (text)
  • striptags (text)

Author

License

The MIT License, see the included license.md file.

Bitdeli Badge

npm loves you