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.1.tar.gz (367.5 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.1-py2.py3-none-any.whl (273.7 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

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

File hashes

Hashes for Jinja2-2.9.1.tar.gz
Algorithm Hash digest
SHA256 d1e67761036f25bea59acf53d9bb137119d6a56c05166c412742499acb790815
MD5 4b2270f003aed1d3f934b4cd87d7f005
BLAKE2b-256 a74e6c4a13fa6bacee33d5b2ff8653593f32853e020c4289b24935305f202baf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for Jinja2-2.9.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 5308c0017872a9a1bcb39766b56240e8f28222b62d7e5f2f8c821085ce608468
MD5 c984a7b6ab1751309b4149c06d44d490
BLAKE2b-256 39104e29a4822d736c878ee5be74912bba174e5ab0e5b1cecfa56da7b1341108

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