Liking cljdoc? Tell your friends :D
Clojure only.

confick.core


bindcljmacro

(bind bindings & body)

Evaluates body in a lexical scope in which the symbols in the binding-forms are bound to their corresponding configuration values.

Configuration values are looked up at runtime.

Example: (bind [addr [:tcp :address] port [:tcp :port]] (format "%s:%d" addr port))

Use metadata to assign default values or make configuration keys mandatory.

Example: (bind [^:required addr [:tcp :address] ^{default: 80} port [:tcp :port]] (format "%s:%d" addr port))

Evaluates body in a lexical scope in which the symbols in the
binding-forms are bound to their corresponding configuration
values.

Configuration values are looked up at runtime.

Example:
  (bind [addr [:tcp :address]
         port [:tcp :port]]
    (format "%s:%d" addr port))

Use metadata to assign default values or make configuration
keys mandatory.

Example:
  (bind [^:required addr [:tcp :address]
         ^{default: 80} port [:tcp :port]]
    (format "%s:%d" addr port))
sourceraw docstring

bind*cljmacro

(bind* bindings & body)

Evaluates body in a lexical scope in which the symbols in the binding-forms are bound to their corresponding configuration values.

Configuration values are looked up at compile-time.

Example: (bind* [addr [:tcp :address] port [:tcp :port]] (format "%s:%d" addr port))

Use metadata to assign default values or make configuration keys mandatory.

Example: (bind* [^:required addr [:tcp :address] ^{default: 80} port [:tcp :port]] (format "%s:%d" addr port))

Evaluates body in a lexical scope in which the symbols in the
binding-forms are bound to their corresponding configuration
values.

Configuration values are looked up at compile-time.

Example:
  (bind* [addr [:tcp :address]
          port [:tcp :port]]
    (format "%s:%d" addr port))

Use metadata to assign default values or make configuration
keys mandatory.

Example:
  (bind* [^:required addr [:tcp :address]
          ^{default: 80} port [:tcp :port]]
    (format "%s:%d" addr port))
sourceraw docstring

gulpclj

(gulp)

Reads the entire EDN formatted configuration file.

The default relative path of the configuration file is "config.edn". It gets overwritten by the EDN_CONFIG_PATH environment variable or Java system property.

Set EDN_CONFIG_CACHE_MILLIS to zero to disable caching.

Reads the entire EDN formatted configuration file.

The default relative path of the configuration file is
"config.edn". It gets overwritten by the EDN_CONFIG_PATH
environment variable or Java system property.

Set EDN_CONFIG_CACHE_MILLIS to zero to disable caching.
sourceraw docstring

lookupclj

(lookup ks & {:keys [required default] :or {required false default nil}})

Searches for a configuration value, where ks is a sequence of keys.

Searches for a configuration value, where ks is a sequence
of keys.
sourceraw docstring

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

× close