reitit

https://cljdoc.org/d/metosin/reitit/ https://github.com/metosin/reitit/
plexus 2020-03-24T12:50:21.115100Z

is there any way to use a registry for looking up handlers? I'd like to do this: ["/foobar" {:get {:handler :foo/bar}}]

plexus 2020-03-24T12:51:39.115700Z

or what's the recommended way to combine pure-data route information with handler functions when using reitit-ring?

plexus 2020-03-24T13:35:47.116200Z

handling it with a custom :expand function, would love to know if there's a better way

ikitommi 2020-03-24T19:53:02.123600Z

been busy with work and helping kids with remote school, haven’t had time for open source - lag in handling the PRs & issues right now.

ikitommi 2020-03-24T20:04:05.127700Z

@plexus there isn’t a official / documented way to do that. :expand should work and you can also map it for sequences and use sci to implement those. would be an awesome demo to have a “online routing editor” using cljs + code-mirror.

ikitommi 2020-03-24T20:05:55.129100Z

at some point, there was a dicussion should the handlers too have a supporting Protocol like Interceptors & Middleware. One could attach meta-data, and :compile those ahead of time. Not sure how useful that would be, but possible.

ikitommi 2020-03-24T20:06:10.129400Z

Ideas welcome.