Fork me on GitHub
#juxt
<
2020-06-11
>
borkdude10:06:23

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}

😎 9
FlavaDave15:06:19

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?

dominicm16:06:19

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