Liking cljdoc? Tell your friends :D

lambda-blog.generator

Filesystem utilities used in the generation pipeline.

Filesystem utilities used in the generation pipeline.
raw docstring

clean-dir!clj

(clean-dir! {:keys [output-dir] :as ent})

Cleans the configured output-dir. Returns unmoified entity, but interacts with the filesystem.

Cleans the configured `output-dir`. Returns unmoified `ent`ity, but interacts with the filesystem.
sourceraw docstring

copy-dir!clj

(copy-dir! {:keys [output-dir] :as ent} what where)

Copies what to where inside of the configured output-dir. Returns unmodified entity, but interacts with the filesystem.

Copies `what` to `where` inside of the configured `output-dir`. Returns unmodified `ent`ity, but interacts with the filesystem.
sourceraw docstring

generate!clj

(generate! entity key template & args)

Transforms a part of an entity under key into an HTML page using template with extra args. Returns unmodified entity, but interacts with the filesystem.

Transforms a part of an `entity` under `key` into an HTML page using `template` with extra `args`. Returns unmodified `entity`, but interacts with the filesystem.
sourceraw docstring

generate-all!clj

(generate-all! entity key template & args)

Transforms a sequence of values of an entity under key into HTML pages using template with extra args. Returns entity unmodified, but interacts with the filesystem.

Transforms a sequence of values of an `entity` under `key` into HTML pages using `template` with extra `args`. Returns `entity` unmodified, but interacts with the filesystem.
sourceraw docstring

read-dirclj

(read-dir entity key path)

Reads a directory under path. Returns entity with file contents sequence stored under key.

Reads a directory under `path`. Returns `entity` with file contents sequence stored under `key`.
sourceraw docstring

updateclj

(update entity key & funs)

Returns entity with value under key modified by succesively applying funs.

Returns `entity` with value under `key` modified by succesively applying `funs`.
sourceraw docstring

update-allclj

(update-all entity key & funs)

Returns entity with sequence under key modified by succesively applying funs to each of the elements.

Returns `entity` with sequence under `key` modified by succesively applying `funs` to each of the elements.
sourceraw docstring

wheneverclj

(whenever entity predicate? & funs)

Returns entity modified by succesively applying funs if (predicate? entity) is true.

Returns `entity` modified by succesively applying `funs` if `(predicate? entity)` is true.
sourceraw docstring

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

× close