mirror of
https://github.com/discourse/discourse.git
synced 2024-12-12 02:43:44 +08:00
d615de9139
* Remove Handlebars.SafeString usage * DEV: Support for `import Handlebars from 'handlebars'`; * FIX: Sprockets was broken when `node_modules` was present By default the old version of sprockets looks for application.js anywhere, including in a node_modules folder if this exists (which it will when we move to Ember CLI.)
8 lines
279 B
JavaScript
8 lines
279 B
JavaScript
import { registerUnbound } from "discourse-common/lib/helpers";
|
|
import { renderIcon } from "discourse-common/lib/icon-library";
|
|
import { htmlSafe } from "@ember/template";
|
|
|
|
registerUnbound("d-icon", function(id, params) {
|
|
return htmlSafe(renderIcon("string", id, params));
|
|
});
|