Pass in any attributes/arguments that existed in the original template
Closed this issue · 6 comments
from:
template.hbs
to:
template.hbs
components/hello-world.hbs
refs: https://github.com/ember-template-lint/ember-template-recast
sample implementation - https://astexplorer.net/#/gist/43cfbcb18d878f83403fe5d9142ab302/fb00a7a231bb8c3335df7423dc6286621e04b365
cases to figure out how to handle:
-> adds scoped
prefix for this.
cases with overlapped namespaces.
-> instead of @bar={{this.foo.bar}} @baz={{this.foo.baz}}
- @foo={{this.foo}}
one more example - https://astexplorer.net/#/gist/f035b50dd7222759fc70e128557fd668/729932462b61b99b710676532e3bb5cd05be1faa
cases to figure out how to handle:
we need to use registry
to check, if helper exists or not, if not - use localFoo
, else - skip path.
like hasHelperWith name, or check for .
inside {data: false, this:false}
paths.
You are on 🔥
looks like https://astexplorer.net/#/gist/b9f00c20c05206519afbb291970f9955/3c4a2ef4926f09c33ca5f1624a247005b5ea7236 is in a good shape, @Alonski could you take it for implementation?
I will try to find the time this week to try to start tackling this :)