discourse/app/assets/javascripts/widget-runtime.js
Robin Ward 7df57b35da REFACTOR: Remove Discourse.__widget_helpers
It's now a variable in the context where the templates are created.
2020-08-06 14:35:46 -04:00

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);