Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow customizing template processing in custom environments for hbs files #585

Closed
patricklx opened this issue May 30, 2023 · 1 comment
Closed

Comments

@patricklx
Copy link
Contributor

patricklx commented May 30, 2023

i'm trying to create a custom env for ember-hbs-imports
which was working in a hacky way until 0.9.7. see https://github.com/patricklx/ember-hbs-imports/blob/main/glint/glint-hbs-imports-env.js
I just need to be able to preprocess the template contents, or even better, transform the ast. afterwards I can probably add a transform for the ts source part to add setEmitMetadata
and I would need to be able to pass globals...

not sure if there is a better way?

@chriskrycho
Copy link
Member

Glint does not have the maintainer time commitment to support multiple syntaxes. Given Ember RFC 779, we are committed to supporting loose mode templates for .hbs and strict mode templates in .gjs/.gts with <template>, and we will absolutely not support any other modes. I understand that might be disappointing, but anything else would be dishonest about what we can or cannot support!

Additionally, given Ember’s own direction, I would strongly recommend that you deprecate ember-hbs-imports and move to the form the community will be standardizing on.

@chriskrycho chriskrycho closed this as not planned Won't fix, can't repro, duplicate, stale Jun 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants