REFACTOR: Remove Discourse.__widget_helpers

It's now a variable in the context where the templates are created.
This commit is contained in:
Robin Ward
2020-08-06 14:35:46 -04:00
parent 792bd3faff
commit 7df57b35da
9 changed files with 14 additions and 22 deletions
+11
View File
@@ -0,0 +1,11 @@
// discourse-skip-module
(function(context) {
// register widget helpers for compiled `hbs`
context.__widget_helpers = {
avatar: require("discourse/widgets/post").avatarFor,
dateNode: require("discourse/helpers/node").dateNode,
iconNode: require("discourse-common/lib/icon-library").iconNode,
rawHtml: require("discourse/widgets/raw-html").default
};
})(this);