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

Fix support for nested components in mustache statement #56

Merged
merged 1 commit into from Oct 17, 2023

Conversation

davidtaylorhq
Copy link
Collaborator

The implementation of classify() was converting component invocations like {{dir/component-name}} to <DirComponentName />. This commit fixes the classify function to replace / with ::.

The implementation of `classify()` was converting component invocations like `{{dir/component-name}}` to `<DirComponentName />`. This commit fixes the classify function to replace `/` with `::`.
davidtaylorhq added a commit to discourse/discourse that referenced this pull request Oct 12, 2023
We run the ember-this-fallback transformation on plugin and theme code so that they can continue omitting `this.` in `.hbs` templates. A bug in the implementation meant that it was incorrectly transforming things like `{{dir/some-component}}` into `<DirSomeComponent />` (rather than `<Dir::SomeComponent />`).

This commit uses patch-package to apply the fix from tildeio/ember-this-fallback#56
davidtaylorhq added a commit to discourse/discourse that referenced this pull request Oct 12, 2023
…23912)

We run the ember-this-fallback transformation on plugin and theme code so that they can continue omitting `this.` in `.hbs` templates. A bug in the implementation meant that it was incorrectly transforming things like `{{dir/some-component}}` into `<DirSomeComponent />` (rather than `<Dir::SomeComponent />`).

This commit uses patch-package to apply the fix from tildeio/ember-this-fallback#56
@chancancode chancancode merged commit 2b610a4 into tildeio:main Oct 17, 2023
8 of 11 checks passed
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 this pull request may close these issues.

None yet

2 participants