Skip to main content

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")

Go read the docs!

Project details


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 details)

Uploaded Source

Built Distribution

Jinja2_TD-3.1.2-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

Details for the file Jinja2-TD-3.1.2.tar.gz.

File metadata

  • Download URL: Jinja2-TD-3.1.2.tar.gz
  • Upload date:
  • Size: 8.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.25.1 rfc3986/1.5.0 tqdm/4.57.0 urllib3/1.26.5 CPython/3.10.6

File hashes

Hashes for Jinja2-TD-3.1.2.tar.gz
Algorithm Hash digest
SHA256 7ec2f65906826e4dd1c7fad73eb0b5e42bca4f2744a5ff5c5217377e1d1c0054
MD5 20b94713654ead7f2eccc7c43aa110f3
BLAKE2b-256 702241caf65de3890e471626a9d93b54693ebf0549a25ba2168c896021cb85a6

See more details on using hashes here.

File details

Details for the file Jinja2_TD-3.1.2-py3-none-any.whl.

File metadata

  • Download URL: Jinja2_TD-3.1.2-py3-none-any.whl
  • Upload date:
  • Size: 9.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.25.1 rfc3986/1.5.0 tqdm/4.57.0 urllib3/1.26.5 CPython/3.10.6

File hashes

Hashes for Jinja2_TD-3.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 907ce25b7a8f02eb031f8ec15c7975ab8b1a21dd71e4bd621fe2938b4902e84d
MD5 298de44ebebedc5235dda36f01c55089
BLAKE2b-256 d388395aff5004ad1373bfebb677e0d341a449ad2a427d1c2249ab11b07252fe

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page