- class boa.template.JinjaTemplateVars(value)[source]#
Bases:
EnumThese are the variables that are passed to the jinja2 template. They should always be able to be used in your template (config file).
- config_path = 'Full path to the config file.'#
- config_dir_name = 'Name of the directory containing the config file.'#
- config_file_name = 'Name of the config file.'#
- boa.template.render_template_from_path(path, template_kw: Optional[dict] = None, **kwargs)[source]#
Render a template from a path.
- Parameters
path (Path) – Path to the template file.
template_kw (dict, optional) – Dictionary of keyword arguments to pass to the jinja2.Template constructor.
**kwargs – Keyword arguments to pass to the template as variables to render.