Fork me on GitHub
#reitit
<
2022-04-18
>
weavejester20:04:17

Is there a good explanation of the router :compile option anywhere?

ikitommi13:04:03

Nothing other than the https://github.com/metosin/reitit/blob/master/modules/reitit-core/src/reitit/core.cljc#L326 I guess. You can build things like schema-coercers once per endpoint, to be available on succesful match.

weavejester20:04:12

My assumption at first was that it would act the same as the :compile option present in middleware, as it took the same arguments, but it appears to be different.