Mustache
Introduction
The Mustache Extension provides output and file templating based on the Mustache Templating Language.
Documentation References:
API References
Requirements
Pystache
Cement 3.0.8+:
pip install cement[mustache]
Applications using Cement <3.0.8 should continue to include pystache
in their dependencies.
Configuration
Application Configuration Settings
This extension honors the following settings under the primary namespace (ex: [myapp]
) of the application configuration:
Application Meta Options
This extension honors the following App.Meta
options:
Usage
Output Handler
Template Handler
Loading Partials
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:
Last updated