Mustache
Last updated
Last updated
The Mustache Extension provides output and file templating based on the .
Documentation References:
API References
Pystache
Applications using Cement <3.0.8 should continue to include pystache
in their dependencies.
This extension honors the following settings under the primary namespace (ex: [myapp]
) of the application configuration:
Setting
Description
template_dir
Directory path of a local template directory.
Option
Description
template_handler
A template handler to use as the backend for templating
template_dirs
A list of data directories to look for templates
template_module
A python module to look for templates
Mustache supports partials
, or in other words template includes
. These are also loaded by the output handler, but require a full file name. The partials will be loaded in the same way as the base templates.
The above would output:
This extension honors the following options: