cement.ext.ext_mustache
Cement mustache extension module.
Note This extension has an external dependency on pystache
. Cement
explicitly does not include external dependencies for optional
extensions.
In Cement
>=3.0.8
you must includecement[mustache]
in your applications dependencies.In Cement
<3.0.8
you must includepystache
in your applications dependencies.
- class cement.ext.ext_mustache.MustacheOutputHandler(*args: Any, **kw: Any)[source]
Bases:
OutputHandler
This class implements the Output Handler interface. It provides text output from template and uses the Mustache Templating Language. Please see the developer documentation on Output Handling.
- _setup(app: App) None [source]
Called during application initialization and must
setup
the handler object making it ready for the framework or the application to make further calls to it.- Parameters:
app (instance) – The application object.
- class cement.ext.ext_mustache.MustacheTemplateHandler(*args: Any, **kw: Any)[source]
Bases:
TemplateHandler
This class implements the Template Handler interface. It renderd content as template, and supports copying entire source template directories using the Mustache Templating Language. Please see the developer documentation on Template Handling.
Note This extension has an external dependency on
pystache
. You must includepystache
in your applications dependencies as Cement explicitly does not include external dependencies for optional extensions.