JinjaFile
Base classes¶
| Name | Children | Inherits |
|---|---|---|
| dict builtins dict() -> new empty dictionary |
|
⋔ Inheritance diagram¶
graph TD
97041654710672["jinjafile.JinjaFile"]
128674497011904["builtins.dict"]
128674497047040["builtins.object"]
128674497011904 --> 97041654710672
128674497047040 --> 128674497011904
🛈 DocStrings¶
Bases: dict[str, Any]
A file defining filters / tests.
Source code in src/jinjarope/jinjafile.py
filters_dict
property
¶
filters_dict: dict[str, Callable[..., Any]]
Return a dictionary with all filters.
Can directly get merged into env filters.
functions_dict
property
¶
functions_dict: dict[str, Callable[..., Any]]
Return a dictionary with all filters.
Can directly get merged into env filters.
loader
property
¶
Return a (composed Choice-) loader defined in this Jinja file.
tests_dict
property
¶
tests_dict: dict[str, Callable[..., bool]]
Return a dictionary with all filters.
Can directly get merged into env filters.
__init__
¶
Instanciate the file.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
path
|
str | PathLike[str]
|
Path to the jinja file |
required |