templates¶
Templates module.
- class homer.templates.Renderer(base_path: str, base_private_path: str = '')[source]¶
Bases:
object
Load and render templates.
Initialize the instance.
- Parameters:
base_path (str) -- the base path to initialize the Jinja2 environment with. All templates path must be relative to this base path.
base_private_path (str, optional) -- a secondary base path to initialize the Jinja2 environment with. Templates that are not found in base_path will be looked up in this secondary private location.