A readline shell for the Django template language.
Project description
django-template-repl is a readline shell for the Django template language.
It is similar to a cpython shell but it interprets template code instead of
python. It can be invoked either as a management comment or within another
template for debugging.
To install, add 'template_repl' to your settings.INSTALLED_APPS.
The management command gives you quick access to the shell:
python manage.py templateshell
Or, add this to your template and it will create a REPL that assumes the
context of the caller template. This is sort of like "PDB for templates":
{% load repl %}{% repl %}
It is similar to a cpython shell but it interprets template code instead of
python. It can be invoked either as a management comment or within another
template for debugging.
To install, add 'template_repl' to your settings.INSTALLED_APPS.
The management command gives you quick access to the shell:
python manage.py templateshell
Or, add this to your template and it will create a REPL that assumes the
context of the caller template. This is sort of like "PDB for templates":
{% load repl %}{% repl %}
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
File details
Details for the file django-template-repl-0.1.tar.gz
.
File metadata
- Download URL: django-template-repl-0.1.tar.gz
- Upload date:
- Size: 2.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cd64f19b63514fadffb6b8dd592415f47423463f057fdcedc2972c7905e86c2f |
|
MD5 | bae7e7a7905eaabd0f4278dd09f11c74 |
|
BLAKE2b-256 | 9b1862a2eda1d39b443f9cd22738e63307283dc97c6b656cb64dc63182ae1636 |