Skip to main content

A small but fast and easy to use stand-alone template engine written in pure python.

Project description

Jinja is a sandboxed template engine written in pure Python. It provides a Django like non-XML syntax and compiles templates into executable python code. It’s basically a combination of Django templates and python code.

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|e }}">{{ user.username|e }}</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 jinja webpage and documentation.

Note

This is the Jinja 1.0 release which is completely incompatible with the old “pre 1.0” branch. The old branch will still receive security updates and bugfixes but the 1.0 branch will be the only version that receives support.

If you have an application that uses Jinja 0.9 and won’t be updated in the near future the best idea is to ship a Jinja 0.9 checkout together with the application.

The Jinja trunk is installable via easy_install with easy_install Jinja==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

Jinja-1.0.tar.gz (120.9 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

Jinja-1.0-py2.5.egg (217.5 kB view details)

Uploaded Egg

Jinja-1.0-py2.4.egg (218.6 kB view details)

Uploaded Egg

Jinja-1.0-py2.3.egg (694.1 kB view details)

Uploaded Egg

File details

Details for the file Jinja-1.0.tar.gz.

File metadata

  • Download URL: Jinja-1.0.tar.gz
  • Upload date:
  • Size: 120.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for Jinja-1.0.tar.gz
Algorithm Hash digest
SHA256 86309c61c83ba831e25cfe4eb67fdb315f6e8a4dab6a046f12eefc1d0fddc28c
MD5 4ed2624cc06c3610d6682f5d591e8812
BLAKE2b-256 59b75fd2f94eb354877062ead65052172dafd84558704a1040c1e9a0201e3eff

See more details on using hashes here.

File details

Details for the file Jinja-1.0-py2.5.egg.

File metadata

  • Download URL: Jinja-1.0-py2.5.egg
  • Upload date:
  • Size: 217.5 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for Jinja-1.0-py2.5.egg
Algorithm Hash digest
SHA256 a8ffb3ea50da7152702639946af3db95ba3ba647748d45738caa3dce24a25120
MD5 8fb165498239323e4951266b0cd78a73
BLAKE2b-256 3d1fd4d757591ea451a922b5b3823fa35f47d7a09f61f695ba7dc758560d23b6

See more details on using hashes here.

File details

Details for the file Jinja-1.0-py2.4.egg.

File metadata

  • Download URL: Jinja-1.0-py2.4.egg
  • Upload date:
  • Size: 218.6 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for Jinja-1.0-py2.4.egg
Algorithm Hash digest
SHA256 d0f83742984a0161055e385c7db1113624ce86982137c9f790b056fd766fe383
MD5 b54741c5c71f72eac6c392491ff3c069
BLAKE2b-256 0ee7567ee65f05732bbe0142cb9ec1222bcbe5e79fffc0957f4c1894f55271fa

See more details on using hashes here.

File details

Details for the file Jinja-1.0-py2.3.egg.

File metadata

  • Download URL: Jinja-1.0-py2.3.egg
  • Upload date:
  • Size: 694.1 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for Jinja-1.0-py2.3.egg
Algorithm Hash digest
SHA256 0b254f6d3580426a13eabea10cbf37eae7bd23b2961427bd2146cde919b02fff
MD5 d9c16c5fc4b7a9f97f59e7d08a4fb555
BLAKE2b-256 708ee5ed97c2489f259a5a07bf5c8171230d43e23fa1d34d62ed8c5d1f8575e7

See more details on using hashes here.

Supported by

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