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.

The Jinja2 tip is installable via easy_install with easy_install Jinja2==dev.

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

Uploaded Source

Built Distributions

Jinja2-2.1-py2.6-win32.egg (216.1 kB view details)

Uploaded Source

Jinja2-2.1-py2.5-win32.egg (214.5 kB view details)

Uploaded Source

Jinja2-2.1-py2.4-win32.egg (217.3 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for Jinja2-2.1.tar.gz
Algorithm Hash digest
SHA256 a9abe1cd68aa2f7bf4502456ebc00500570fdd878cfb19fd908f837f61b811ff
MD5 c7a31931c95a7ae5e1baf21074fdd576
BLAKE2b-256 f671f7b1b6bb97d635e57e196ac2d70a0b001d37a94b0c37f5ec02d0ffce31f6

See more details on using hashes here.

File details

Details for the file Jinja2-2.1-py2.6-win32.egg.

File metadata

File hashes

Hashes for Jinja2-2.1-py2.6-win32.egg
Algorithm Hash digest
SHA256 3c51815d28ebf078449b398390ca27ea4b57481c8f552408d59f6a5a2af15f27
MD5 8319235be842d5a61c552be8d206f65a
BLAKE2b-256 ba5515ed056fb8c85e0c27fbb3d542250628e4df04dbd0f85c7d83274ee377cd

See more details on using hashes here.

File details

Details for the file Jinja2-2.1-py2.5-win32.egg.

File metadata

File hashes

Hashes for Jinja2-2.1-py2.5-win32.egg
Algorithm Hash digest
SHA256 b0e31b2b137437ea2ec37bebcdd8532c26575b999f5d67003625ff14652af88c
MD5 135dad62ce5de34a54d568a2b3cd05f0
BLAKE2b-256 dc96f9a47d6f13d4f66fe9376716c94453114d1409c3ee0a6120153c1c335cc0

See more details on using hashes here.

File details

Details for the file Jinja2-2.1-py2.4-win32.egg.

File metadata

File hashes

Hashes for Jinja2-2.1-py2.4-win32.egg
Algorithm Hash digest
SHA256 857bfc9ddd22f2ea04e217598dd698af49fe57f136bee05cff63d27d4080f5ee
MD5 d8eb08f4ef61b05a00039a48f620deeb
BLAKE2b-256 3d6a1999db9da05cfc3f799bb3184997cb1dc34063b4a34519d8618c44c5cf69

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