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

Uploaded Source

Built Distribution

Jinja2-2.9.4-py2.py3-none-any.whl (274.6 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

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

File hashes

Hashes for Jinja2-2.9.4.tar.gz
Algorithm Hash digest
SHA256 aab8d8ca9f45624f1e77f2844bf3c144d180e97da8824c2a6d7552ad039b5442
MD5 b151bfab6fb728fb7a06da4299161c74
BLAKE2b-256 f43f28387a5bbc6883082c16784c6135440b94f9d5938fb156ff579798e18eda

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for Jinja2-2.9.4-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 93b97a811b575998899b293fdb2144c536aeb7d6ee13464b0cf8e86ae64eb56b
MD5 a01160d11bd84452ab7840b0f8c1d079
BLAKE2b-256 4bd0c967cd61324702887b00b1e8e78db94db734a9018443051a0854c16a8fe1

See more details on using hashes here.

Supported by

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