Jinja2 plugin. More...
Public Member Functions | |
| def | __init__ |
| def | setup |
| Render template files. More... | |
| def | teardown |
Delete files generated during setup(). More... | |
| def | __init__ |
| def | setup |
| Render template files. More... | |
| def | teardown |
Delete files generated during setup(). More... | |
Static Public Attributes | |
| string | config_schema |
| int | order = 1000 |
| dictionary | utils_ctx = {"get_random_port": get_random_port} |
Jinja2 plugin.
Configuration schema:
jinja2:
files:
# Files are relative etr working directory
"foo/bar.j2" : "foo/bar.config"
# Environment expansion also works.
"baz.j2.yaml" : "$DATAROOT/config/baz.yaml" | def etr.plugins.jinja2.Plugin.__init__ | ( | self, | |
| ctx | |||
| ) |
| def etr.plugins.jinja2.Plugin.__init__ | ( | self, | |
| ctx | |||
| ) |
| def etr.plugins.jinja2.Plugin.setup | ( | self, | |
| ctx | |||
| ) |
Render template files.
| def etr.plugins.jinja2.Plugin.setup | ( | self, | |
| ctx | |||
| ) |
Render template files.
| def etr.plugins.jinja2.Plugin.teardown | ( | self, | |
| ctx | |||
| ) |
Delete files generated during setup().
The cleanup is oppertunistic and failures are logged but otherwise ignored to avoid cancelling any other pending plugin teardowns.
| def etr.plugins.jinja2.Plugin.teardown | ( | self, | |
| ctx | |||
| ) |
Delete files generated during setup().
The cleanup is oppertunistic and failures are logged but otherwise ignored to avoid cancelling any other pending plugin teardowns.
|
static |
|
static |
|
static |
1.8.5