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.2.tar.gz
(8.1 kB
view hashes)
Built Distribution
Close
Hashes for Jinja2_TD-3.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 907ce25b7a8f02eb031f8ec15c7975ab8b1a21dd71e4bd621fe2938b4902e84d |
|
MD5 | 298de44ebebedc5235dda36f01c55089 |
|
BLAKE2b-256 | d388395aff5004ad1373bfebb677e0d341a449ad2a427d1c2249ab11b07252fe |