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}
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
?You're looking to relativize paths? Bidi doesn't provide that functionality.