gain.templates package
Module contents
Central Jinja2 template environment for GAIn.
Provides a singleton Environment that resolves templates in two stages:
Physical files under gain/templates/template_files/ via PackageLoader.
Strings supplied by callables registered under the “gain.templates.providers” entry-point group. Each callable must return a
dict[str, str]mapping template name to template source. All provider dictionaries are merged lazily on first miss.
Raises jinja2.TemplateNotFound if a name is not found in either stage.