Skip to main content

A small but fast and easy to use stand-alone template engine written in pure python.

Project description

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.

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

Jinja2-2.8.tar.gz (357.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

Jinja2-2.8-py2.py3-none-any.whl (263.9 kB view details)

Uploaded Python 2Python 3

File details

Details for the file Jinja2-2.8.tar.gz.

File metadata

  • Download URL: Jinja2-2.8.tar.gz
  • Upload date:
  • Size: 357.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for Jinja2-2.8.tar.gz
Algorithm Hash digest
SHA256 bc1ff2ff88dbfacefde4ddde471d1417d3b304e8df103a7a9437d47269201bf4
MD5 edb51693fe22c53cee5403775c71a99e
BLAKE2b-256 f22f0b98b06a345a761bec91a079ccae392d282690c2d8272e708f4d10829e22

See more details on using hashes here.

File details

Details for the file Jinja2-2.8-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for Jinja2-2.8-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 1cc03ef32b64be19e0a5b54578dd790906a34943fe9102cfdae0d4495bd536b4
MD5 75acb6f1abfc46ed75f4fd392f321ac2
BLAKE2b-256 96a1c56bc4d99dc2663514a8481511e80eba8994133ae75eebdadfc91a5597d9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page