This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-12-28
Channels
- # announcements (1)
- # babashka (28)
- # beginners (228)
- # cider (9)
- # clara (6)
- # clojure (66)
- # clojure-uk (13)
- # clojuredesign-podcast (5)
- # clojurescript (9)
- # core-typed (1)
- # cursive (1)
- # duct (2)
- # emacs (8)
- # fulcro (18)
- # graalvm (11)
- # hyperfiddle (1)
- # malli (2)
- # off-topic (33)
- # re-frame (9)
- # reagent (3)
- # reitit (15)
- # shadow-cljs (6)
- # tools-deps (1)
Hi, I'm pretty new to reagent and libraries around it, and I would like to route against a regular expression. As I used the "reagent-template" to generate my project, I use reitit for routing purpose, I would like to declare a router as follows:
(def router
(reitit/router
[[#"/page.*" :index]]))
But reitit doesn't seem to handle it correctly:
svg-ellipse.core> (reitit.core/routes router)
[]
Is there a way to handle regex through reitit?