bidi icon indicating copy to clipboard operation
bidi copied to clipboard

Bidirectional URI routing

Results 60 bidi issues
Sort by recently updated
recently updated
newest added

``` (def routes-test ["/" {(->Alternates ["index" "index-x" "index.html" "x-index.html" "index-x.html" "x.html"]) :handler }]) (bidi/match-route routes-test "/index") => {:handler :handler} (bidi/match-route routes-test "/index-x") => nil (bidi/match-route routes-test "/index.html") => nil (bidi/match-route...

Since `just-path` removes `#` so that a path `/#/about-me` becomes `/`, which makes the following code not working ```clojure (def bidi-route ["/" {"#/about-me" :about-me "#/publications" :publications "#/teaching" :teaching}]) (bidi/path-for bidi-route...

Was trying out some things because I want to move an app off of secretary. This could be a misunderstanding on my part. but this is surprising that `path-for` can...

I traced back the history to 92a2263ad39c61f6812a870a79fe4fe49576899c but it's unclear why `:handler` is removed from the `match-context` (along with other info which unlike this is present in the request). I...

Greetings, It would seem ideal to have coercion and defaults for path parameters and query parameters be expressed at the routing level so that downstream logic could share. I don't...

filesmaybe is useful as well. I modelled it after resourcesMaybe ``` (defrecord FilesMaybe [options] bidi/Matched (resolve-handler [this m] (let [reminder (url-decode (:remainder m)) filename (str (:dir options) reminder)] ;(warn "file-maybe:...

the handler for files is wrapped with (wrap-not-modified). the resource handler does not have this middleware call. It is not logical that one has, and the other has not. I...

First, thanks for `bidi` - it's great, we have used it for frontend and backend routing for years and it has greatly simplified swaths of code around urls. If it...

Had this issue of partly destroyed request maps when using `bidi` with `nginx-clojure-embed`. Noticed that nginx returns request as `nginx.clojure.clj.LazyRequestMap` type, while for example jetty returns `clojure.lang.PersistentHashMap`. (Wrapping request and...

Bidi supports matching non-ascii characters in path patterns, but does bidi support non-ascii as path parameters? ```clojure (def routes ["/" [["Йцукен" [["" :just_qwerty] [["/" :id] :qwerty_and_more]]]]]) (bidi/match-route routes "/Йцукен") ;;...