Metadata-Version: 2.4
Name: Jinja2-TD
Version: 3.1.4
Summary: Jinja2 template dependency insight
Home-page: https://github.com/louisdevie/jinja2-td
Author: Louis DEVIE
License: MIT
Keywords: jinja,jinja2,template,dependency
Classifier: Development Status :: 5 - Production/Stable
Classifier: Programming Language :: Python :: 3.8
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE_JINJA2
Requires-Dist: Jinja2<=3.1.4,>=3.1.2
Dynamic: author
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: keywords
Dynamic: license
Dynamic: license-file
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary

# Jinja2-TD  ![Read The Docs](https://readthedocs.org/projects/jinja2-td/badge/?version=latest)

Provides information about Jinja2 template dependencies.

## Install

```sh
pip install Jinja2-TD==3.x.x
```

## Example

```python
...

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!](https://jinja2-td.readthedocs.io)
