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

This commit is contained in:
Julian Lam
2015-01-07 16:38:23 -05:00
parent aa62c52580
commit b685194dae

View File

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