Jinja2 2.0
A small but fast and easy to use stand-alone template engine written in pure python.
Latest Version: 2.2.1
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.
| File | Type | Py Version | Uploaded on | Size | # downloads |
|---|---|---|---|---|---|
| Jinja2-2.0.tar.gz (md5) | Source | 2008-07-17 21:33:36 | 511KB | 2956 | |
- Author: Armin Ronacher <armin ronacher at active-4 com>
- Home Page: http://jinja.pocoo.org/
- License: BSD
- Categories
- Package Index Owner: mitsuhiko
- Package Index Maintainer: asmodai
- DOAP record: Jinja2-2.0.xml
Log in to rate this package.
