Liking cljdoc? Tell your friends :D

mount.extensions.data-driven

Start a system based on a data configuration.

Start a system based on a data configuration.
raw docstring

with-configcljmacro

(with-config config & body)

Set the available states and substitutes for starting (or stopping) by using a configuration map. This map supports the :only (a collection), :except (a collection) and :substitutes (a sequence) keys. All references to defstates or substitute states should be symbols, i.e. they will be resolved for you. For example:

(with-config '{:only [user/foo user/bar] :substitutes [user/bar user/baz]} (start))

Set the available states and substitutes for starting (or stopping)
by using a configuration map. This map supports the :only (a
collection), :except (a collection) and :substitutes (a sequence)
keys. All references to defstates or substitute states should be
symbols, i.e. they will be resolved for you. For example:

(with-config '{:only        [user/foo user/bar]
               :substitutes [user/bar user/baz]}
  (start))
sourceraw docstring

with-config*clj

(with-config* {:keys [only except substitutes]} f)
source

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

× close