Liking cljdoc? Tell your friends :D

ez-plugin

Library for creating a plugin system.

Usage

  1. Library to be loaded as a plugin

  2. An EDN file in the file path (for example in resources)

    1. The EDN file can be named anything

    2. If placed in the root of resources, the path is the file name

  3. You run the following code

(require '[ez-plugin.core :as plugin])
(plugin/load-plugins "plugin.edn" {})

The EDN file must look like this. The hooks specified as a vector with the fully qualifed path to the functions you wish to call. The context map is passed as an argument to the function.

``clojure {:ez-plugin/hooks [ez-plugin-test1.core/hook]}

See in the code base for examples.

== Testing & development

In order to develop the library and to run the tests,
the two test libraries must first be installed.

== License

Copyright © 2019 Emil Bengtsson

___

Coram Deo

Can you improve this documentation?Edit on GitHub

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

× close