juxt

borkdude 2020-06-11T10:25:23.168700Z

juxt/aero now works with babashka:

$ export BABASHKA_CLASSPATH=$(clojure -Spath -Sdeps '{:deps {aero {:mvn/version "1.1.6"}}}')
$ bb -e "(require '[aero.core :refer [read-config]]) (read-config (java.io.StringReader. \"{:a 1 :b #ref [:a]}\"))"
{:a 1, :b 1}

😎 3
FlavaDave 2020-06-11T15:38:19.171900Z

Im trying to find a way with bidi to return the differenct between the uri and a path. Example:

(def route ["/" {"foo/" :foo
                 "bar/" :bar}])
how could i go about using /foo/js/main.js to return js/main.js?

dominicm 2020-06-11T16:47:19.172800Z

You're looking to relativize paths? Bidi doesn't provide that functionality.