updated helper loading so it loads all helpers in helpers local var

v1.18.x
Julian Lam 10 years ago
parent aa62c52580
commit b685194dae

@ -43,8 +43,9 @@
templates = window.templates;
}
templates.registerHelper('displayUsersLink', helpers.displayUsersLink);
templates.registerHelper('buildMetaTag', helpers.buildMetaTag);
Object.keys(helpers).forEach(function(helperName) {
templates.registerHelper(helperName, helpers[helperName]);
});
};
// Use the define() function if we're in AMD land

Loading…
Cancel
Save