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 environmant 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 environmant 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 with the default enviroment map which containts the identifiers to value mappings for the evaluation. Then string is parsed and evaluated with the generated environment.
Takes a string and an optional map. The map is merged with the default enviroment map which containts the identifiers to value mappings for the evaluation. Then string is parsed and evaluated with the generated environment.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close