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.3.tar.gz (369.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.9.3-py2.py3-none-any.whl (274.6 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

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

File hashes

Hashes for Jinja2-2.9.3.tar.gz
Algorithm Hash digest
SHA256 ad82db536885b24aef5d2cb9d4d8da48a4202533fc1b7e60c068867426396488
MD5 4d7c7e4f598800500ea63b5afaa8ec0c
BLAKE2b-256 7eeaf515b991b63346ad62efeae073d613c12216c551f9f9c2fa74c916e731c0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for Jinja2-2.9.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 9951f5045ee63d93c25ff168648d3e2f5e0dc1ec3465a83d0bc436c129e14340
MD5 15ece86934541f08e16a6f4b1f6e9459
BLAKE2b-256 e42000afebb3a730abdb8152845b3df0bce381daf39ce999ee0ac0ee3aee8845

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