CLI tool to render django template files
Project description
Installation
$ [sudo] pip install django-template-cli
How it works
index.html
context.json (optional)
Executable modules
usage | __doc__ |
---|---|
python -m django_template_cli path |
render django template file |
Scripts usage
command | usage |
---|---|
django-template-cli |
usage: django-template-cli path |
Examples
index.html
:
{% for v in values %}
{{ forloop.counter0 }}: {{ v }}
{% endfor %}
context.json
:
{
"values": ["value1","value2","value3"]
}
$ django-template-cli index.html
0: value1
1: value2
2: value3
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
Close
Hashes for django-template-cli-2019.6.25.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 40b292b8ea128eb06d8e719f79aa8019dac134fbfb164f6fe8aac2ff36b49546 |
|
MD5 | 7b61f04dca3455f5ca4236d598233bc8 |
|
BLAKE2b-256 | cbcbf7566259c3b5f6e404d3ccb10b8de58346356ea7bf9eb94783f597da43e6 |