Fork me on GitHub
#clojure-uk
<
2022-09-22
>
dharrigan06:09:11

Good Morning!

steffan06:09:33

Morning all 🙂

benedek06:09:59

morning, had some fun looking at your startrek example app @dharrigan yesterday. loads there, thx for putting it together

dharrigan06:09:58

You're welcome. It's only an example. Have you looked at the donut version?

dharrigan06:09:07

I'm tending towards donut atm

benedek06:09:02

nope, will do

dharrigan06:09:48

One of the things I do in the donut version (which, admittingly I could also do in the clip version, it's just that clip predates the donut version and I haven't bothered to up date it yet), is that I pass the "system", aka app-config as part of the data in reitit then access it in the handlers later (by first putting it on the request in the middleware handler)

dharrigan06:09:30

This makes it "cleaner" in the sense I don't have to "colour" the handler functions by always passing through the app-config, as it's already on the request.

dharrigan19:09:44

I got there eventually 🙂

dharrigan06:09:01

So, donut is better atm (however, like I mentioned, I could do the exact same with the clip project, just haven't updated it yet)

benedek06:09:34

sounds nice