Go to file
2013-08-07 14:27:31 +01:00
artwork documentation style updates, added print css 2008-05-06 12:14:23 +02:00
docs Clarified some text in the intro 2013-05-20 12:15:50 +01:00
examples Fixed a broken example. This fies #45 2011-07-07 15:42:25 +02:00
ext Merge pull request #188 from lemonad/master 2013-05-18 04:10:40 -07:00
jinja2 Bump version number to 2.7.1 2013-08-07 14:27:31 +01:00
scripts Fixed release script 2013-08-07 14:25:19 +01:00
.gitignore Added .egg to .gitignore 2013-05-20 01:32:44 +01:00
.travis.yml Make travis execute make test instead of setup.py test 2013-05-20 12:18:35 +01:00
AUTHORS Add myself. 2013-05-18 10:39:12 +01:00
CHANGES Bugfix release is today 2013-08-07 13:04:00 +01:00
jinja2-debug.py More extensions in jinja debug 2011-05-24 16:40:09 +02:00
LICENSE Fixed inconsistency in LICENSE file. 2009-01-06 13:10:58 +01:00
Makefile Added nicer test finder from Flask 2013-05-20 11:51:37 +01:00
MANIFEST.in Added nicer test finder from Flask 2013-05-20 11:51:37 +01:00
README.rst Added README 2010-10-17 15:58:08 +02:00
run-tests.py Added nicer test finder from Flask 2013-05-20 11:51:37 +01:00
setup.cfg (codename Kong, released on September 12th 2009) 2009-09-13 00:23:27 -07:00
setup.py Bump version number to 2.7.1 2013-08-07 14:27:31 +01:00
tox.ini Added nicer test finder from Flask 2013-05-20 11:51:37 +01:00

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`_.

The `Jinja2 tip`_ is installable via `easy_install` with ``easy_install
Jinja2==dev``.

.. _sandboxed: http://en.wikipedia.org/wiki/Sandbox_(computer_security)
.. _Django: http://www.djangoproject.com/
.. _Jinja2 webpage: http://jinja.pocoo.org/
.. _documentation: http://jinja.pocoo.org/2/documentation/
.. _Jinja2 tip: http://dev.pocoo.org/hg/jinja2-main/archive/tip.tar.gz#egg=Jinja2-dev