2016-01-27 10:29:26 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
Template helper definitions for Handlebars.
|
|
|
|
@license MIT. Copyright (c) 2015 James Devlin / FluentDesk.
|
|
|
|
@module handlebars-helpers.js
|
|
|
|
*/
|
|
|
|
|
|
|
|
(function() {
|
|
|
|
var HANDLEBARS, _, helpers;
|
|
|
|
|
|
|
|
HANDLEBARS = require('handlebars');
|
|
|
|
|
|
|
|
_ = require('underscore');
|
|
|
|
|
|
|
|
helpers = require('./generic-helpers');
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
Register useful Handlebars helpers.
|
|
|
|
@method registerHelpers
|
|
|
|
*/
|
|
|
|
|
|
|
|
module.exports = function(theme, opts) {
|
|
|
|
helpers.theme = theme;
|
|
|
|
helpers.opts = opts;
|
|
|
|
return HANDLEBARS.registerHelper(helpers);
|
|
|
|
};
|
|
|
|
|
|
|
|
}).call(this);
|
2016-02-02 02:14:36 +00:00
|
|
|
|
|
|
|
//# sourceMappingURL=handlebars-helpers.js.map
|