Reference Tag by Path
cynthiahhc opened this issue · 2 comments
cynthiahhc commented
Description
Add a reference tag by path when referencing a context.
Why
Some marko templates do not have a specific names which might just be index.marko
. There is no way to reference it.
ccinelli commented
I think the context should have and optional channel
attribute that can be used as key instead of the component name.
DylanPiercey commented
This is now possible since you can pass in the component constructor, eg:
import SomeComponent from "./some-path.marko";
<context|| from=someComponent>
...