mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-03 06:10:38 +01:00
updated helper loading so it loads all helpers in helpers local var
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user