Jinja2 is a template engine written in pure Python. It provides a Django inspired non-XML syntax but supports inline expressions and an optional sandboxed environment.
Nutshell
Here a small example of a Jinja template:
{% extends 'base.html' %}
{% block title %}Memberlist{% endblock %}
{% block content %}
<ul>
{% for user in users %}
<li><a href="{{ user.url }}">{{ user.username }}</a></li>
{% endfor %}
</ul>
{% endblock %}
Philosophy
Application logic is for the controller but don’t try to make the life for the template designer too hard by giving him too few functionality.
For more informations visit the new Jinja2 webpage and documentation.
Release files for Jinja2 2.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| Jinja2-2.7.tar.gz | 377.6 kB | Details |
Release files / Jinja2-2.7.tar.gz
| Download URL | Jinja2-2.7.tar.gz |
|---|---|
| Size | 377.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
474f1518d189ae7e318b139fecc1d30b943f124448cfa0f09582ca23e069fa4d
|
|
BLAKE2b-256 checksum How to use checksums |
33db9931c645626f9bf7867cc3c4225e7a8abf7aff37ecddb7e7d5df90a3b6c4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |