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="https://pypi.python.org/%7B%7B%20user.url%20%7D%7D">{{ 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.10.tar.gz (261.6 kB view details)

Uploaded Source

Built Distribution

Jinja2-2.10-py2.py3-none-any.whl (126.4 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

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

File hashes

Hashes for Jinja2-2.10.tar.gz
Algorithm Hash digest
SHA256 f84be1bb0040caca4cea721fcbbbbd61f9be9464ca236387158b0feea01914a4
MD5 61ef1117f945486472850819b8d1eb3d
BLAKE2b-256 56e6332789f295cf22308386cf5bbd1f4e00ed11484299c5d7383378cf48ba47

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for Jinja2-2.10-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 74c935a1b8bb9a3947c50a54766a969d4846290e1e788ea44c1392163723c3bd
MD5 cb679acd14423aef56dfff61d6a988f8
BLAKE2b-256 7fffae64bacdfc95f27a016a7bed8e8686763ba4d277a78ca76f32659220a731

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