A simple public API for document generation from templates.
A simple public API for document generation from templates.
(prepare input)
Creates a prepared template instance from an input document.
Creates a prepared template instance from an input document.
(render! template template-data & {:as opts})
Takes a prepared template instance and renders it. By default it returns an InputStream of the rendered document.
Options map keys:
Takes a prepared template instance and renders it. By default it returns an InputStream of the rendered document. Options map keys: - {:output FNAME} renders output to file FNAME (string or File object). Throws exception if file already exists and :overwrite? option is not set. - {:output :input-stream} returns an input stream of the result document. - {:output :reader} returns the input stream reader of the result document.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close