1
0
mirror of https://github.com/JuanCanham/HackMyResume.git synced 2024-11-10 20:06:22 +00:00
HackMyResume/dist/helpers/underscore-helpers.js

39 lines
753 B
JavaScript
Raw Normal View History

2016-01-27 10:29:26 +00:00
/**
Template helper definitions for Underscore.
@license MIT. See LICENSE.md for details.
2016-01-27 10:29:26 +00:00
@module handlebars-helpers.js
*/
(function() {
var HANDLEBARS, _, helpers;
HANDLEBARS = require('handlebars');
_ = require('underscore');
helpers = require('./generic-helpers');
/**
Register useful Underscore helpers.
@method registerHelpers
*/
module.exports = function(theme, opts, cssInfo, ctx, eng) {
helpers.theme = theme;
helpers.opts = opts;
helpers.cssInfo = cssInfo;
helpers.engine = eng;
ctx.h = helpers;
_.each(helpers, function(hVal, hKey) {
2016-01-27 10:29:26 +00:00
if (_.isFunction(hVal)) {
return _.bind(hVal, ctx);
}
}, this);
};
}).call(this);
2016-02-02 02:14:36 +00:00
//# sourceMappingURL=underscore-helpers.js.map