marko-js/tags

Reference Tag by Path

cynthiahhc opened this issue · 2 comments

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.

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

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

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

<context|| from=someComponent>
  ...