gws.plugin.template.text
¶
CX text-only templates.
This template is based on Jump, like html templates, but doesn’t support custom commands and non-text outputs.
Source code: gws.plugin.template.text
Package Contents¶
- class gws.plugin.template.text.Config¶
Bases:
gws.base.template.Config
Text-only template. (added in 8.1)
- path: gws.FilePath | None¶
Path to a template file.
- text: str = ''¶
Template content.
- class gws.plugin.template.text.Engine¶
Bases:
gws.lib.vendor.jump.Engine
- class gws.plugin.template.text.Object¶
Bases:
gws.base.template.Object
- compiledFn¶
- compiledTime: float = 0¶
- path: str¶
- text: str¶
- configure()¶
- error_handler(exc, path, line, env)¶
- finalize(tri: gws.TemplateRenderInput, res: str, args: dict, main_engine: Engine)¶
- render(tri)¶
- class gws.plugin.template.text.Props¶
Bases:
gws.base.template.Props