mirror of
https://github.com/discourse/discourse.git
synced 2025-01-18 13:32:45 +08:00
cef1dcfc7d
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> ); ``` |
||
---|---|---|
.. | ||
images | ||
javascripts | ||
stylesheets |