Open jamesarosen opened 7 years ago
This would also be great for certain testing scenarios.
This should be possible with something like this:
import templateOnly from '@ember/component/template-only';
import { setComponentTemplate } from '@ember/component';
import { hbs } from 'ember-cli-htmlbars';
export default setComponentTemplate(
hbs`<div>inline template!</div>`,
templateOnly(),
);
Glimmer doesn't seem to support inlining component templates. I've tried
and variants thereon.
The issue seems to be that the rendering environment doesn't have access to the component instance, so it can't look up the compiled template. This will likely require coordination between this project and glimmerjs/glimmer.js.