Functions for a stencil like templating.
Functions for a stencil like templating.
(parse-stencil template)
Parses stencils like {{key}} or {{[key1 key2 ...]}} and retunrs a distinct sequence of vectors containing [recognized line, the whole {{}} expresion to be replaced, key-expression]
Parses stencils like {{key}} or {{[key1 key2 ...]}} and retunrs a distinct sequence of vectors containing [recognized line, the whole {{}} expresion to be replaced, key-expression]
(render template value-map)
renders a stencils like template and replaces {{key}} or {{[key1 key2 ...]}} with given value-map values.
renders a stencils like template and replaces {{key}} or {{[key1 key2 ...]}} with given value-map values.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close