Liking cljdoc? Tell your friends :D

resource-config.core


configclj

(config)
(config keys)
(config keys default)

Read a value from the configuration file at keys (keys is a path of keys as used in get-in). There are two arities.

If the file does not exist, throws a FileNotFoundException.

If a value at keys does exist, returns it.

If a value at keys does not exist and no default is given (single argument), throws an exception.

If a value at keys does not exist and a default is given, returns the default.

Read a value from the configuration file at `keys` (`keys` is a
path of keys as used in `get-in`). There are two arities.

If the file does not exist, throws a FileNotFoundException.

If a value at `keys` does exist, returns it.

If a value at `keys` does not exist and no `default` is given (single
argument), throws an exception.

If a value at `keys` does not exist and a `default` is given,
returns the default.
raw docstring

config-file-nameclj


read-configclj


reload-config!clj

(reload-config!)

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close