Usage::
>>> from djtemplateinspector import get_variables
>>> from django.template import Template
>>> tmpl = Template("Welcome, {{ user }}!")
>>> get_variables(tmpl)
["user"]
>>> from djtemplateinspector import get_variables
>>> from django.template import Template
>>> tmpl = Template("Welcome, {{ user }}!")
>>> get_variables(tmpl)
["user"]
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file django-templateinspector-0.1.tar.gz.
File metadata
- Download URL: django-templateinspector-0.1.tar.gz
- Upload date:
- Size: 1.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7334bb799976e5fb1bb6550237374799737aaf330a4b5e5e3975139d50eaee77
|
|
| MD5 |
60906fd2d2b3a26b9057774936a6f46d
|
|
| BLAKE2b-256 |
dc5ef8f0cfabf0518cb113b57baa5e2edeaefc19330325c1d391c0888523cc58
|