HTMLRenderer

The HTMLRenderer provides templating support via Go’s html/template package. This allows docproc to create complex, message-dependent content to be stored in the message itself. It is similar to the TemplateTransformer, except that html/template contains some builtin safety nets for HTML content.

Configuration

The HTMLRenderer requires the following configuration entries:

[htmlrenderer-config]
type = HTMLRenderer
store.in = path_to_store
templates = /path/to/all/templates/*.tpl
templateroot = main
type
To configure a HTMLRenderer, use HTMLRenderer as type.
store.in
The path to use on the message’s content to store the transformed result in.
templates
Location of the template files on disk. This should be a glob pattern match.
templateroot
The template entry point to use ({{define "your-entrypoint" }}).