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

Uploaded Python 2Python 3

File details

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

File metadata

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

File hashes

Hashes for Jinja2-2.9.6.tar.gz
Algorithm Hash digest
SHA256 ddaa01a212cd6d641401cb01b605f4a4d9f37bfc93043d7f760ec70fb99ff9ff
MD5 6411537324b4dba0956aaa8109f3c77b
BLAKE2b-256 9061f820ff0076a2599dd39406dcb858ecb239438c02ce706c8e91131ab9c7f1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for Jinja2-2.9.6-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 2231bace0dfd8d2bf1e5d7e41239c06c9e0ded46e70cc1094a0aa64b0afeb054
MD5 61a215bcdb0f7939c70582bc00b293f1
BLAKE2b-256 5e7310c45b82a88ed6b7751bd40da31eeefd7b362e07b56a99aa6e56655a0794

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