Back

load-annotations (clj)

(source)

function

(load-annotations) (load-annotations path)
Search the base classpath for all resources that share the same path (by default `integrant/annotations.edn`), and use their contents to add annotations to namespaced keywords via [[annotate]]. This allows annotations to be specified without needing to load every namespace. The annoation resources should be edn files that map namespaced keywords to maps of annotation metadata. For example: {:example/keyword {:doc "An example keyword."}} This is equivalent to: (annotate :example/keyword {:doc "An example keyword."})

Examples