This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-12-16
Channels
- # adventofcode (99)
- # announcements (2)
- # babashka (37)
- # beginners (111)
- # cider (4)
- # cljsrn (5)
- # clojure (51)
- # clojure-australia (2)
- # clojure-chicago (3)
- # clojure-europe (141)
- # clojure-nl (2)
- # clojure-provo (2)
- # clojure-spec (48)
- # clojure-sweden (2)
- # clojure-uk (26)
- # clojurescript (34)
- # conjure (1)
- # core-logic (5)
- # cursive (16)
- # datomic (2)
- # events (2)
- # fulcro (54)
- # graphql (13)
- # jobs-discuss (116)
- # kaocha (14)
- # meander (101)
- # off-topic (41)
- # pathom (6)
- # planck (3)
- # re-frame (53)
- # reagent (10)
- # reitit (1)
- # reveal (13)
- # shadow-cljs (35)
- # spacemacs (22)
Another, perhaps slightly silly, question. Is there any obvious way I’m not thinking of to alias route names? For example:
["/image/:id" {:name ::image-show
:get image-handler/show
:delete image-handler/destroy}]
In this case, is there a way to create an alias name (say, ::image-destroy
) so that the “action” (in Rails parlance) is maintained? For instance:
(f/form-to [:delete (v/path-for req :kosa.routes/image-show (:crux.db/id image))]
(f/submit-button {:name "submit"} "Delete Image"))
…feels a bit silly, even though it’s correct with the routes as I have them set up. (`v/path-for` just delegates to match->path
).