marko-path-router
marko-path-router copied to clipboard
Allow specifying components by name (string)
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' },
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.