At the beginning of my Clojure program I do a:
(def db-coords
{:classname "org.postgresql.Driver"
:subprotocol "postgresql"
:subname (str "//" host ":" port "/" dbname) ;; host, port and dbname are defd above
:user "foo"
:password "bar"})
I would like to store these values in an external file (.clj or otherwise) on the classpath and load them from there. Clearly one way to do it would be using java.util.Properties but I suspect there is an idiomatic way in Clojure.