mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-07 17:25:31 +02: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 = 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
|
||||||
|
|||||||
Reference in New Issue
Block a user