Fork me on GitHub
#juxt
<
2019-07-31
>
neupsh19:07:38

Hello, how do I get urls with space to work with bidi? https://github.com/juxt/bidi

(def routes ["/" {"" :index
                  "users" {"" :users
                           ["/" :name] :user}
                  true :four-o-four}])
=> #'cljs.user/routes

(bidi/path-for routes :user :name "Hello World")
=> "/users/Hello World"

(bidi/match-route routes (bidi/path-for routes :user :name "Hello World"))
=> {:handler :four-o-four}