Fork me on GitHub
#reitit
<
2020-05-03
>
Dave Simmons16:05:05

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??

ikitommi19:05:39

@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 Simmons20:05:04

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