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.8you must includecement[mustache]in your applications dependencies.In Cement
<3.0.8you must includepystachein your applications dependencies.
- class cement.ext.ext_mustache.MustacheOutputHandler(*args: Any, **kw: Any)[source]
Bases:
OutputHandlerThis 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
setupthe 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:
TemplateHandlerThis 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 includepystachein your applications dependencies as Cement explicitly does not include external dependencies for optional extensions.