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 ttype)
(engine-type ttype & 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-for-selection 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.
(repo-type rtype)
(repo-type rtype & 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 is a website building & hosting documentation for Clojure/Script libraries
× close