This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-01-09
Channels
- # announcements (28)
- # babashka (8)
- # bangalore-clj (1)
- # beginners (123)
- # boot (1)
- # bristol-clojurians (1)
- # calva (3)
- # cider (30)
- # clj-kondo (42)
- # cljs-dev (5)
- # clojure (260)
- # clojure-dev (11)
- # clojure-europe (7)
- # clojure-india (1)
- # clojure-italy (2)
- # clojure-losangeles (5)
- # clojure-nl (5)
- # clojure-portugal (15)
- # clojure-uk (51)
- # clojurescript (69)
- # cursive (6)
- # data-science (21)
- # datascript (17)
- # datomic (1)
- # emacs (29)
- # figwheel-main (11)
- # fulcro (89)
- # graphql (5)
- # hoplon (2)
- # hugsql (6)
- # jobs (11)
- # juxt (1)
- # leiningen (7)
- # luminus (1)
- # malli (3)
- # off-topic (64)
- # pathom (32)
- # project-updates (1)
- # re-frame (9)
- # reagent (10)
- # reitit (21)
- # ring (5)
- # ring-swagger (1)
- # shadow-cljs (8)
- # spacemacs (6)
- # xtdb (4)
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?
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”.
Thanks @toni.vanhala, that is good to know and a helpful starting point.
Here’s a simple example that stores the route match in atom https://github.com/metosin/reitit/blob/master/examples/frontend/src/frontend/core.cljs
A re-frame example: https://github.com/metosin/reitit/blob/master/examples/frontend-re-frame/src/cljs/frontend_re_frame/core.cljs
matched route is under :current-route
in the app db
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/
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 😉
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](https://emoji.slack-edge.com/T03RZGPFR/thumbsup_all/50096a1020.png)
If you’d like to apply with multiple people send us an email first
We’d be open to it but we haven’t done it before
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?
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](https://emoji.slack-edge.com/T03RZGPFR/thumbsup_all/50096a1020.png)
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
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."
When I paste the URL into https://petstore.swagger.io/#/ it works just fine