Jinja2 template dependency insight
Project description
Jinja2-TD
Provides information about Jinja2 template dependencies.
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.post2.tar.gz
(8.2 kB
view hashes)
Built Distribution
Close
Hashes for Jinja2_TD-3.1.post2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a3ce3ed85b8e67a2c2d1c614689b806bd5484fb88c91fc0e67307fda7ce59db1 |
|
MD5 | 0bcd53abf326f69a6d7adb5802c5c059 |
|
BLAKE2b-256 | 3f67adb7d40fe40b891b13107fbf2c22766eb9bbee72a9e243292329ed7ebab5 |