Liking cljdoc? Tell your friends :D

marquetry.core

Marquetry is a library for string templating that got out of hand. Objects in the string delimited by <()> are interpreted using an extensible lisp like dsl.

Marquetry is a library for string templating that got out of hand. Objects in
the string delimited by <()> are interpreted using an extensible lisp like
dsl.
raw docstring

defmarquetryclj/smacro

(defmarquetry n f)

Macro to add new marquetry functions. Takes a name and a function. The function is run with the arguments evaluated with the default environment. The environment is available in the function in the env variable.

Macro to add new marquetry functions. Takes a name and a function. The
function is run with the arguments evaluated with the default
environment. The environment is available in the function in the env
variable.
raw docstring

defmarquetry-no-evalclj/smacro

(defmarquetry-no-eval n f)

Macro to add new marquetry functions. Takes a name and a function. The function is run with the arguments not evaluated with the default environment. The environment is available in the function as the env variable.

Macro to add new marquetry functions. Takes a name and a function. The
function is run with the arguments not evaluated with the default
environment. The environment is available in the function as the env
variable.
raw docstring

envclj/s

This is the mini dsl languages default execution environment.

This is the mini dsl languages default execution environment.
raw docstring

evalclj/s

(eval env parse-tree)

Takes an optional environment atom and a parsed tree. Transforms the tree and then returns the result.

Takes an optional environment atom and a parsed tree. Transforms the tree and
then returns the result.
raw docstring

parserclj/s


renderclj/s

(render s & [m])

Takes a string and an optional map. The map is merged into the default environment map which contains the identifiers to value mappings for the evaluation, under the name-spaced keyword ::marquetry-collection. Then string is parsed and evaluated with the generated environment.

Takes a string and an optional map. The map is merged into the default
environment map which contains the identifiers to value mappings for the
evaluation, under the name-spaced keyword ::marquetry-collection. Then string
is parsed and evaluated with the generated environment.
raw docstring

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

× close