This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-10-17
Channels
- # announcements (2)
- # aws (44)
- # beginners (96)
- # calva (10)
- # cider (7)
- # cljdoc (5)
- # cljsrn (2)
- # clojure (38)
- # clojure-dev (19)
- # clojure-europe (6)
- # clojure-italy (16)
- # clojure-nl (10)
- # clojure-norway (44)
- # clojure-spec (7)
- # clojure-uk (74)
- # clojurescript (133)
- # cloverage (1)
- # cursive (54)
- # datomic (78)
- # duct (11)
- # graalvm (5)
- # instaparse (4)
- # joker (3)
- # kaocha (5)
- # nrepl (2)
- # off-topic (10)
- # pathom (56)
- # pedestal (1)
- # reagent (7)
- # reitit (17)
- # shadow-cljs (144)
- # slack-help (2)
- # sql (35)
- # testing (5)
- # tools-deps (22)
- # vim (22)
- # xtdb (11)
Did you try to use the hash function has predicate?
Does anyone know if the reitit api docs are published anywhere? The guide is nice, but doesn't serve as a useful reference.
@ataggart have you checked the examples? for example https://github.com/metosin/reitit/tree/master/examples/ring-spec-swagger
Like the api docs for clojure: https://clojure.github.io/clojure/
oh, those are in cljdoc: https://cljdoc.org/d/metosin/reitit/0.3.10/doc/introduction
Somewhat relatedly, it would be good to:
1. Include protocol methods in the namespace index
2. Use docstings for protocol methods
This all came about because we were inadvertently reimplementing reitit.core/route-names
, and only caught it when reading the guide on name-based routing. That fn (and all Router
protocol methods) are otherwise undocumented: https://cljdoc.org/d/metosin/reitit/0.3.10/api/reitit.core#Router
How do you get the current path, specifically path params, from the router or history?
i see the path in the history -> last fragment, but is there a way to ask for the path prams specifically?
(rf/match-by-path router
"/user/5d965755-89b5-472c-9998-9431f1752827/medications")
Evals to nothing. As in nothing shows when i eval it. Butbut..
(:parameters (rf/match-by-path router
"/user/5d965755-89b5-472c-9998-9431f1752827/medications"))
evals to
;; => {:path {:user-id "5d965755-89b5-472c-9998-9431f1752827"}, :query {}}
That probably isnt a reitit specific question, but im not sure where to start.