juxt / bidi

Bidirectional URI routing

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Document Usage with Liberator

deadghost opened this issue · comments

bidi is written to do 'one thing well' (URI dispatch and formation) and is intended for use with Ring middleware, HTTP servers (including Jetty, http-kit and aleph) and is fully compatible with Liberator.

Bidi advertises usage with liberator but does not include documentation on how to. Usage with liberator is not obvious or intuitive. My attempt at it resulted in myapp.router$test$fn__44611 cannot be cast to clojure.lang.Associative. The solution for this was found in #95. Expecting every user of bidi + liberator to stumble upon this issue's solution or fumble through with an independent solution is unreasonable and should be remedied.