Do magic without being forced to load files
jerger opened this issue · comments
M.Jerger commented
Is there a way to get the same cool functions as provided in
(read-config "config.edn")
by soley act on software defined map? Sth. like
(resolve-config {:hello "World"})
?
Not being forced to handle files (either on filesystem-by-path, by-resource or by-resource-in-jar) would make testing a lot easier ...
Dominic Monroe commented
The config can be a reader, see the tests for aero.
M.Jerger commented
you mean:
(read-config
(string-reader
(binding [*print-meta* true]
(pr-str {:user ^:ref [:karl]
:gardner {:favorite-color ^:ref [:color]}
:karl ^:ref [:gardner]
:color :blue})))))))
cool :-)