mirror of
https://github.com/discourse/discourse.git
synced 2025-02-21 13:06:40 +08:00

In particular, this allows us to use gjs `<template>` for RenderGlimmer, registerWidgetShim, and decorateCooked's `helper.renderGlimmer`. ```js // Simple component class: registerWidgetShim( "render-glimmer-test-component-shim", "div.initial-wrapper-class", SimpleComponent ); ``` ```gjs // Or an inline `<template>` registerWidgetShim( "render-glimmer-test-component-shim", "div.initial-wrapper-class", <template>Hello world</template> ); ```