updated helper loading so it loads all helpers in helpers local var, #2588

v1.18.x
Julian Lam 10 years ago
parent 1868a02bd7
commit 501935d359

@ -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