juxt / aero

A small library for explicit, intentful configuration.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Do magic without being forced to load files

jerger opened this issue · comments

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 ...

The config can be a reader, see the tests for aero.

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 :-)