mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 16:41:18 +08:00
7df57b35da
It's now a variable in the context where the templates are created.
12 lines
384 B
JavaScript
12 lines
384 B
JavaScript
// 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);
|