tmt.templates package
Module contents
- class tmt.templates.TemplateManager(custom_template_path: Path | None = None)
Bases:
object
Template manager class.
It provides methods for rendering templates during story, plan or test creation.
- custom_templates
Return all custom templates.
- default_templates
Return all default templates.
- render_default_plan() str
Return default plan template.
- render_file(path: Path, **variables: Any) str
Render template from given file path. :param path: path to the template file. :param variables: variables to be passed to the template.
- render_from_url(url: str, **variables: Any) str
Render template from given URL. :param url: URL to the template file. :param variables: variables to be passed to the template.
- templates
Return all available templates (default and optional).