Jinja2 template dependency insight
Project description
Jinja2-TD
Provides information about Jinja2 template dependencies.
Install
pip install jinja2-td=3.x.x
Example
...
my_template = env.get_template("my_template.j2")
...
template_info = env.dependencies.get_template("my_template.j2")
parent = template_info.get_parent()
if parent is not None:
print("This template extends", parent.target.name)
else:
print("This template doesn't extend another")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
jinja2_td-3.1.6.post1.tar.gz
(8.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file jinja2_td-3.1.6.post1.tar.gz.
File metadata
- Download URL: jinja2_td-3.1.6.post1.tar.gz
- Upload date:
- Size: 8.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c06a02930ce0a70881bc4331b454d2ef1b448414fe9c338373c3fcb617f196fb
|
|
| MD5 |
29fab49c385f5787fd9225c96bfd93b9
|
|
| BLAKE2b-256 |
75de0a7814323e3110cf92bb225a1b051e2592e662515f698da6fbea7df3548b
|
File details
Details for the file jinja2_td-3.1.6.post1-py3-none-any.whl.
File metadata
- Download URL: jinja2_td-3.1.6.post1-py3-none-any.whl
- Upload date:
- Size: 9.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cad0c8f5312036c27112c241317796b9b99d4fd9b7dfd965b0155c2d62966fd9
|
|
| MD5 |
6f8dde753b9245fe8c60da457c7991c4
|
|
| BLAKE2b-256 |
b706fabe105bce0bb5d01ddf377c7e8efff2179ed369542e0e72b44c535a6cfc
|