- class boa.template.JinjaTemplateVars(config_path: Path)[source]#
Bases:
objectThese are the variables that are passed to the jinja2 template. They should always be able to be used in your template (config file) assuming you are not rendering the jinja template yourself directly.
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.
- Parameters
config_path (Path) –
- 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.