Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: UAVCAN UAVCAN_Subscriber
Renderer Class Reference
Public Member Functions | |
| def | __init__ |
| def | render |
Detailed Description
Render a template-parse-tree. :Uses: `TemplateBase` for macros
Definition at line 1057 of file pyratemp.py.
Constructor & Destructor Documentation
| def __init__ | ( | self, | |
| evalfunc, | |||
| escapefunc | |||
| ) |
Init the renderer.
:Parameters:
- `evalfunc`: function for template-expression-evaluation
(i.e. ``EvalPseudoSandbox().eval``)
- `escapefunc`: function for escaping special characters
(i.e. `escape`)
Definition at line 1063 of file pyratemp.py.
Member Function Documentation
| def render | ( | self, | |
| parsetree, | |||
| data | |||
| ) |
Render a parse-tree of a template.
:Parameters:
- `parsetree`: the parse-tree
- `data`: the data to fill into the template (dictionary)
:Returns: the rendered output-unicode-string
:Exceptions:
- `TemplateRenderError`
Definition at line 1084 of file pyratemp.py.
Generated on Tue Jul 12 2022 17:17:37 by
1.7.2