Skip to main content

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

django-readme-generator

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

django-template-cli-2019.6.25.tar.gz (2.0 kB view hashes)

Uploaded Source

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