Liking cljdoc? Tell your friends :D

ojo.impl.extension

The only requirement for an ojo extension is that it provide a hash of hooks (all of them are optional). This hash is itself the 'extension'.

The only requirement for an ojo extension is that it provide a hash of hooks
(all of them are optional). This hash is itself the 'extension'.
raw docstring

compose-hooksclj

(compose-hooks extensions)

takes a collection of extensions (hook hash-maps) produces a composite extension.

takes a collection of extensions (hook hash-maps)
produces a composite extension.
sourceraw docstring

composite-hook-fnclj

(composite-hook-fn extensions file-states-atom)

takes a collection of extensions (hook hash-maps) and the file-states-atom. produces a function that evaluates a composite hook

takes a collection of extensions (hook hash-maps) and the file-states-atom.
produces a function that evaluates a composite hook
sourceraw docstring

default-hooksclj

init consumes/produces hash of file-paths + state. file-paths is a collection of strings. hook evaluates when first registering files.

before-event, after-event consumes/produces hash of events + state. events is a collection of event hashes. hook evaluates after/before the immediate response to the file event. (Note that in parallel mode, this means before/after queuing events for workers to process).

before-response, after-response consumes/produces hash of events + state. hook evaluates after/before the response to an individual event by a worker. This is only invoked in parallel mode.

init             consumes/produces hash of file-paths + state.
                 file-paths is a collection of strings.
                 hook evaluates when first registering files.

before-event,
after-event      consumes/produces hash of events + state.
                 events is a collection of event hashes.
                 hook evaluates after/before the immediate
                 response to the file event. (Note that in
                 parallel mode, this means before/after queuing
                 events for workers to process).

before-response,
after-response   consumes/produces hash of events + state.
                 hook evaluates after/before the response
                 to an individual event by a worker.
                 This is only invoked in parallel mode.
sourceraw docstring

hookclj

(hook file-states-atom composite-extension hook-key info)

given a composite extension evaluate the specified hook. the hook receives the present state. the value produced by the hook becomes the new state.

given a composite extension evaluate the specified hook.
the hook receives the present state.
the value produced by the hook becomes the new state.
sourceraw docstring

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

× close