Skip to content
This repository has been archived by the owner on Apr 24, 2020. It is now read-only.

Allow specifying components by name (string) #27

Open
zocky opened this issue Nov 17, 2017 · 1 comment
Open

Allow specifying components by name (string) #27

zocky opened this issue Nov 17, 2017 · 1 comment

Comments

@zocky
Copy link

zocky commented Nov 17, 2017

It would be nice if boilerplating could be reduced by specifying components by name, instead of having to manually require and pass them as objects, e.g.:

      { path: '/', component: 'home' },
      { path: '/beer', component: 'beer' },
@ctdio
Copy link
Owner

ctdio commented Nov 19, 2017

Hello @zocky, this would be a pretty cool feature to have. marko performs automatic tag look ups within .marko files, but I'm not sure if there is an api exposed so that it can be used programmatically outside of that. I'll try to do some digging to see if this is possible.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants