reitit

https://cljdoc.org/d/metosin/reitit/ https://github.com/metosin/reitit/
haywood 2020-03-02T16:53:21.036600Z

(def routes
  [["/" {:crumbs [{:text    "Home"
                   :href    "/"
                   :onClick (fn [e]
                              (.preventDefault e)
                              (js/console.log "clicked home"))}]}
    ["" {:name :home
         :view #'home/render}]
    ["billing" {:name   :billing
                :view   #'billing/render
                :crumbs [{:text    "Billing"
                          :href    "/billing"
                          :onClick (fn [e]
                                     (.preventDefault e)
                                     (js/console.log "clicked billing"))}]}]]])
Trying to figure out what piece of the incantation I’m missing that makes the home route match… (rff/match-by-path router "/") => nil (rff/match-by-path router "") => nil`

haywood 2020-03-02T16:54:26.037Z

Can anyone help with some spare 👀 /billing matches correctly

haywood 2020-03-02T16:56:50.037700Z

uhh, maybe it does work, gas-lit by build cache…

1👍