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

Uploaded Source

Built Distribution

Jinja2-2.8.1-py2.py3-none-any.whl (264.9 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

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

File hashes

Hashes for Jinja2-2.8.1.tar.gz
Algorithm Hash digest
SHA256 35341f3a97b46327b3ef1eb624aadea87a535b8f50863036e085e7c426ac5891
MD5 150a8f1c180272753cf46dd3cdd6decf
BLAKE2b-256 5fbd5815d4d925a2b8cbbb4b4960f018441b0c65f24ba29f3bdcfb3c8218a307

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for Jinja2-2.8.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 3997cf273f1424207c60d5895264f74483fce72702f15a7cd51a8551d43663ca
MD5 7472b9df828747c2d44eb539558bbf7a
BLAKE2b-256 67ea92b1d9d8f2dc43302df7f5271b9500bbfc237386782343561a5f62beb306

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