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.tar.gz (367.4 kB view details)

Uploaded Source

Built Distribution

Jinja2-2.9-py2.py3-none-any.whl (273.7 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

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

File hashes

Hashes for Jinja2-2.9.tar.gz
Algorithm Hash digest
SHA256 bc5ce80fba5561ed94807f91e42e608b04b92861e22f8f79cef3af0444046f5d
MD5 6befb7d870fab7f385b3eb4f2f805272
BLAKE2b-256 44af6d8f605d188a50b11ec17fcd93e612c77197f2cd816facd5fea8aef7802e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for Jinja2-2.9-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 f485882fa2dc4dd27ca49605adcf7968d679ccc6ae220a09ca79622e151a40de
MD5 49b11a7357735679ffdc6d22e506d6bf
BLAKE2b-256 1d7a3dec2b8717e34fba5aae98fc2a42d75c27b2eff3650a2dbd975a664d2a11

See more details on using hashes here.

Supported by

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