reitit

dominicm 2024-05-30T07:43:36.931209Z

Is there an API for building a complete path, given just the path template? e.g. (reitit/??? "/foo/:bar" {:bar "biz"}) => "/foo/biz"? I'm collecting routes from reitit/routes and then using spec generators to fill out the path parameters.

ikitommi 2024-06-04T09:51:45.237359Z

I would just use it, no plans on breaking it, have pushed all the internals out from the core into... impl. Could have named it better thou.

ikitommi 2024-06-04T09:54:04.568239Z

if I would redo the namespaces, would push all the (public) route helpers into something like reitit.routing.

ikitommi 2024-06-04T06:42:09.962809Z

maybe in the impl? if you follow r/match-by-name you should find what you are looking for, see https://cljdoc.org/d/metosin/reitit/0.7.0/doc/basics/name-based-routing.

dominicm 2024-06-04T06:53:43.481349Z

It felt wrong to use the impl, as I assume that can go away at any time?

dominicm 2024-06-05T07:20:20.070399Z

Ah, well if impl is stable then that's OK then. I'll rewrite the workaround I came up with 😄