CMD + K

jinja2

Community

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

Installation

To install this package, run one of the following:

Pip
$pip install -i https://pypi.anaconda.org/alt-pypi-mirror/simple jinja2

Usage Tracking

2.7.3
2.7.2
2.7.1
2.7
2.6
5 / 8 versions selected
Downloads (Last 6 months): 0

Description

Jinja2

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.

About

Summary

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

Last Updated

Oct 14, 2014 at 23:26

License

BSD

Total Downloads

3.8K

Supported Platforms

noarch