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

Reference Tag by Path #12

Closed
cynthiahhc opened this issue Jul 24, 2019 · 2 comments
Closed

Reference Tag by Path #12

cynthiahhc opened this issue Jul 24, 2019 · 2 comments

Comments

@cynthiahhc
Copy link

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
Copy link

ccinelli commented Nov 20, 2019

I think the context should have and optional channel attribute that can be used as key instead of the component name.

@DylanPiercey
Copy link
Contributor

This is now possible since you can pass in the component constructor, eg:

import SomeComponent from "./some-path.marko";

<context|| from=someComponent>
  ...

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

No branches or pull requests

3 participants