Fork me on GitHub
#reitit
<
2020-01-09
>
Dan09:01:02

Yep, a few ways to do it, thought there might be some included data I could use.

Dan09:01:53

I was also looking to see if the library had any scope for adding an active CSS class on matched routes but couldn’t see anything documented?

Toni Vanhala09:01:17

CSS and route rendering are out of scope, so there is no support for that exact need. Also, the compiled routes (data) should be treated as immutable. What I do is, store the match into an atom. When using re-frame, into the app-db . Then, navigation UI components are responsible for rendering the route as “active”.

Dan10:01:09

Thanks @toni.vanhala, that is good to know and a helpful starting point.

Toni Vanhala10:01:21

matched route is under :current-route in the app db

ikitommi12:01:31

hei, someone suggested that reitit (and malli) should be sponsored by Clojurists Together, any insight what should be developed? Thanks anyway 🙇 https://www.clojuriststogether.org/news/q1-2020-survey-results/

conan15:01:12

I find all the stuff around content negotiation and coercion really confusing, to the point where i always give up and do it myself in every endpoint. more examples would probably help? you're always super helpful but i don't want to take too much of your time 😉

ikitommi16:01:46

the docs would need some caretaking. Does someone have or knows a person who has passion and skills in writing library docs? Splitting the 9k$ for 1/3 docs, 1/3 features and 1/3 random would yield 3k$ for writing docs & samples.

thumbsup_all 1
valtteri19:01:32

I could be interested in the docs & samples part :thinking_face:

👍 1
valtteri19:01:32

I might even have some bandwidth during upcoming months

valtteri19:01:55

Let me know if that sounds like a plan!

danielcompton02:01:48

If you’d like to apply with multiple people send us an email first

danielcompton02:01:00

We’d be open to it but we haven’t done it before

conan15:01:54

I have a quick question: i have some simple authorisation middleware which checks the request for some data, logging an error if that data isn't there - when my app starts it logs a lot of spec-generated data, presumably during route compilation. i'm wondering why this is?

heyarne17:01:45

I'm really digging reitit/swagger-ui, it's a great joy developing with it 🙂

heyarne17:01:42

I'm having a problem with a swagger.json that's created with parameterizing my endpoints via clojure.spec.alpha, you can find it here: https://first-names.arnes.space/api/swagger.json

heyarne17:01:01

Basically it breaks swagger-ui 2.0, 3.x seems to still work fine. This sounds like a bug in swagger-ui but I have no idea what's going on, the JS console is just giving me property is undefined and the ui stays at "fetching resource list: https://first-names.arnes.space/api/swagger.json; Please wait."

heyarne17:01:20

When I paste the URL into https://petstore.swagger.io/#/ it works just fine

heyarne20:01:59

What would be needed to update the swagger-ui in reitit-swagger to the current 3.x version? Would love to help with that.