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.
(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.
(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.
This is the mini dsl languages default execution environment.
This is the mini dsl languages default execution environment.
(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.
(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.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close