Various helpers used by gadventures.com for helping render Handlebar templates.
Makes the following assumptions:
- Django's gettext implementation is provided via its Javascript Catalog
- For some helpers, you're using data structures presented by the G API.
Add this project to your dependencies, and bind your existing Handlebars instance to this modules result:
var Handlebars = require('handlebars');
Handlebars = require('handlebars-helpers');
At this point, all the helpers in this module will be registered into Handlebars, you can use them in your templates as you would any other Handlebars helper, e.g.
{{ humanize this.departure_date }}
npm install -g mocha
mocha test
Please!