templates ¤
The subpackage containing the builtin templates.
Functions:
-
configure_env
–Configure the Jinja environment.
-
get_custom_template
–Get a custom template instance.
-
get_template
–Get a builtin template instance.
configure_env ¤
configure_env(env: Environment) -> None
Configure the Jinja environment.
Parameters:
-
env
(Environment
) –The environment to configure.
Source code in src/git_changelog/templates/__init__.py
18 19 20 21 22 23 24 |
|
get_custom_template ¤
Get a custom template instance.
Parameters:
Returns:
-
Template
–The Jinja template.
Source code in src/git_changelog/templates/__init__.py
27 28 29 30 31 32 33 34 35 36 |
|
get_template ¤
get_template(name: str) -> Template
Get a builtin template instance.
Parameters:
-
name
(str
) –The template name.
Returns:
-
Template
–The Jinja template.
Source code in src/git_changelog/templates/__init__.py
39 40 41 42 43 44 45 46 47 48 |
|