reitit

https://cljdoc.org/d/metosin/reitit/ https://github.com/metosin/reitit/
Dave Simmons 2020-05-03T16:29:05.289800Z

Hi All. This might be a really basic question (so apologies in advance) 🙂. I've defined a simple route with a piece of route data (:view). I then call my handler and I can see my route data is in reitit.core/match -> template -> data so I can get at it if needed but is there a recommended way of pulling out the data from the request map??

ikitommi 2020-05-03T19:58:39.293100Z

@shortlyportly there is reitit.ring/get-match to pull out the Match out of a request, but no helpers to get the route data out from a Match.

Dave Simmons 2020-05-03T20:25:04.293900Z

Thanks @ikitommi - wanted to make sure I wasn't missing anything. cheers