Jinja Templates

Jinja is a sandboxed template engine written in pure Python licensed under the BSD license. 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.

The latest Jinja Version is 1.2, you can get it from the download page.

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.

Nutshell

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

Features