typed-ember / glint

TypeScript powered tooling for Glimmer templates
https://typed-ember.gitbook.io/glint
MIT License
110 stars 51 forks source link

Support templates, compiled by `precompileTemplate` #519

Closed lifeart closed 1 year ago

lifeart commented 1 year ago

Hola, amigos! :))

As I understand, notation for templates like:

import { hbs } from '@glimmerx/component'
export default hbs(`<div></div>`);

is supported by glint for glimmerx case, but, not this notation:

import { precompileTemplate } from '@ember/template-compilation';
export default precompileTemplate(`<div></div>`);

Is not really low-level, and it will be great to have it supported by glint by default. I could take a look into if smb point me where to start digging.

Trying to get it working for this case