marko-path-router icon indicating copy to clipboard operation
marko-path-router copied to clipboard

Allow specifying components by name (string)

Open zocky opened this issue 7 years ago • 1 comments

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' },

zocky avatar Nov 17 '17 21:11 zocky

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.

ctdio avatar Nov 19 '17 21:11 ctdio