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
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.
(realize-tags* c p v & {: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.
Items implementing Transformable know when they should be run in the evaluation lifecyle and how to transform the input into the correct data.
Items implementing Transformable know when they should be run in the evaluation lifecyle and how to transform the input into the correct data.
(postwalkable this)
If this is evaluated last in the post-walk cycle.
If this is evaluated last in the post-walk cycle.
(prewalkable this)
If this is evaluated in the first pre-walk cycle.
If this is evaluated in the first pre-walk cycle.
(transform this c v)
Takes a configuration map and a value and returns the evaluated data.
Takes a configuration map and a value and returns the evaluated data.
Checks if the supplied argument supports the Transformable Protocol.
Checks if the supplied argument supports the Transformable Protocol.
(transformable?* this)
Checks if the supplied argument supports the Transformable Protocol.
Checks if the supplied argument supports the Transformable Protocol.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close