mirror of
https://github.com/discourse/discourse.git
synced 2025-01-19 14:32:46 +08:00
d90a31d5b4
Previously `helper.renderGlimmer()` would always create a new wrapper element. This is required when using `RenderGlimmer` within widgets, where there is no direct access to DOM elements. However, when using within `decorateCooked`, we have the ability to pass an existing element to `{{#in-element}}` and have the glimmer content appended with no additional wrappers. This commit makes the `renderInto` accept an existing DOM node for this 'append' behavior. The previous 'new wrapper element' behaviour is still used when a string is passed. |
||
---|---|---|
.. | ||
images | ||
javascripts | ||
stylesheets |