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

Uploaded Source

Built Distribution

Jinja2-2.10.1-py2.py3-none-any.whl (124.9 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: Jinja2-2.10.1.tar.gz
  • Upload date:
  • Size: 261.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for Jinja2-2.10.1.tar.gz
Algorithm Hash digest
SHA256 065c4f02ebe7f7cf559e49ee5a95fb800a9e4528727aec6f24402a5374c65013
MD5 0ae535be40fd215a8114a090c8b68e5a
BLAKE2b-256 93ead884a06f8c7f9b7afbc8138b762e80479fb17aedbbe2b06515a12de9378d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: Jinja2-2.10.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 124.9 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for Jinja2-2.10.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 14dd6caf1527abb21f08f86c784eac40853ba93edb79552aa1e4b8aef1b61c7b
MD5 93ca8152bf9ca03214158a49d542402f
BLAKE2b-256 1de7fd8b501e7a6dfe492a433deb7b9d833d39ca74916fa8bc63dd1a4947a671

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