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.9.5.tar.gz (437.6 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.9.5-py2.py3-none-any.whl (340.7 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

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

File hashes

Hashes for Jinja2-2.9.5.tar.gz
Algorithm Hash digest
SHA256 702a24d992f856fa8d5a7a36db6128198d0c21e1da34448ca236c42e92384825
MD5 9e55f0db6620dd99a1b366183a94270d
BLAKE2b-256 7159d7423bd5e7ddaf3a1ce299ab4490e9044e8dfd195420fc83a24de9e60726

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for Jinja2-2.9.5-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 a7b7438120dbe76a8e735ef7eba6048eaf4e0b7dbc530e100812f8ec462a4d50
MD5 3a518754a21f18b26eb36f3e73defab5
BLAKE2b-256 3cd149d69bc23d0e0c7612248dd8f5391bd043648865132309616c280ca1c837

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