Fig is a configuration file reader based on clojure.edn.
Fig is a configuration file reader based on clojure.edn.
(add-reader! s f)
Define a new reader function. Takes the tag name and an object that implements the Transformable Protocol.
Define a new reader function. Takes the tag name and an object that implements the Transformable Protocol.
(read-config f)
Read the supplied configuration file. Argument is any value supported by clojure.java.io/reader
Read the supplied configuration file. Argument is any value supported by clojure.java.io/reader
(postwalkable this)
(prewalkable this)
(trans this m)
(transformable? this)
Checks if the supplied argument supports the Transformable Protocol.
Checks if the supplied argument supports the Transformable Protocol.
(walk-until-done m)
(walk-until-done m p)
(walk-until-done m p {:keys [max-walks] :or {max-walks 300}})
Keep Walking the collection until no more transformations have been applied. Takes the configuration leaf to transform and optionally the current parsed configuration. A map of option arguments can be supplied as the last argument. The :max-walks key controls the maximum recursion depth of the tree walking.
Keep Walking the collection until no more transformations have been applied. Takes the configuration leaf to transform and optionally the current parsed configuration. A map of option arguments can be supplied as the last argument. The :max-walks key controls the maximum recursion depth of the tree walking.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close