Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install jinja

How to install Jinja

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install jinja
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
1.2 Available View build log
Windows (64-bit)
1.2 Available View build log
Mac OS X (10.5+)
1.2 Available View build log
Linux (32-bit)
1.2 Available View build log
Linux (64-bit)
1.2 Available View build log
 
License
BSD
Dependencies
Lastest release
version 1.2 on Jan 5th, 2011

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 %}

System Message: ERROR/3 (<string>, line 17)

Inconsistent literal block quoting.

<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 tip is installable via easy_install with easy_install Jinja==dev.

copyright:2007 by Armin Ronacher.
license:BSD, see LICENSE for more details.

Subscribe to package updates

Last updated Jan 5th, 2011

Download Stats

Last month:2

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.