👋 hello - is there an exposed function that can build a path out of a template and path-params? I basically just need the url builder part not the full router but I can't figure out a better way than this:
(-> [(:template rq) :x]
(r/router)
(r/match-by-name :x (:path-params rq))
:path)
you can use match->path https://github.com/metosin/reitit/blob/master/doc/basics/name_based_routing.md?plain=1#L85-L101
thanks but that still needs a router. I was hoping there was some internal function that could convert a template plus path-params into a full path directly. but I guess its not too terrible to build a single route router each time just seems like over kill.
I have a Link protocol that i then extend in the router's namespace and have it close over the router for ease of use (and avoid circular dependencies)