juxt

neupsh 2019-07-31T19:57:38.011600Z

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}