Applies the template to the data and returns the output.
Applies the `template` to the `data` and returns the output.
(artifact-filename ctx)(artifact-filename ctx el)Returns the filename of the artifact given the generation context ctx
and optionally a model element el.
Returns the filename of the artifact given the generation context `ctx` and optionally a model element `el`.
(artifact-path ctx)(artifact-path ctx el)Returns the path for the artifact given the generation context ctx
and optionally a model element el.
Returns the path for the artifact given the generation context `ctx` and optionally a model element `el`.
(begin-pattern area-marker)Returns the regex pattern for the begin of a protected area based on the area marker.
Returns the regex pattern for the begin of a protected area based on the area marker.
(create-path pathname)Creates the path for pathname by creating all neccessary directories.
Creates the path for `pathname` by creating all neccessary directories.
Default values for the generator context.
Default values for the generator context.
(end-pattern area-marker area-id)Returns the regex pattern for the end of a protected area based on the area marker and area id.
Returns the regex pattern for the end of a protected area based on the area marker and area id.
(engine-type context)(engine-type context & r)Returns the template engine type.
Returns the template engine type.
(generate model options)Generates artifacts for the model with the generation configuration specified in options.
Generates artifacts for the `model` with the generation configuration specified in `options`.
(generate-artifact parsed-template path ctx model e)Generates an artifact with the template and the context ctx for the model and the selection e.
Generates an artifact with the `template` and the context `ctx` for the `model` and the selection `e`.
(parse-protected-areas area-marker lines)Parse the lines into a protected area map.
Parse the lines into a protected area map.
Returns the parsed template.
Returns the parsed `template`.
(read-config options)Reads the generator configuration specified in options.
Reads the generator configuration specified in `options`.
(read-lines file)Reads the file given and returns a non lazy sequence a of its lines.
Reads the file given and returns a non lazy sequence a of its lines.
(read-protected-areas ctx path)Reads the given path and returns the proected areas as a map.
Reads the given path and returns the proected areas as a map.
(read-source source)Reads the source as string or file.
Reads the `source` as string or file.
(repo-type context)(repo-type context & r)Returns the repository type.
Returns the repository type.
(select-elements model ctx)Returns the selected elements from the model for the generation context ctx.
Returns the selected elements from the `model` for the generation context `ctx`.
(write-artifact pathname result)Write the generated result to the artifact pathname.
Write the generated `result` to the artifact `pathname`.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |