Go to file
2011-07-24 21:48:29 +02:00
artwork documentation style updates, added print css 2008-05-06 12:14:23 +02:00
custom_fixers Down to 7 failures for Python 3. We're onto something. 2010-02-10 01:35:13 +01:00
docs Fix a typo 2011-07-07 12:09:21 -07:00
examples Fixed a broken example. This fies #45 2011-07-07 15:42:25 +02:00
ext jinja.vim subsumes htmljinja.vim 2011-05-13 16:04:20 -07:00
jinja2 version is now static 2011-07-24 21:46:23 +02:00
scripts Added release script 2011-07-24 21:48:29 +02:00
.gitignore Updated ignore files 2010-10-17 16:02:17 +02:00
AUTHORS Never forget about contributors. Thanks Rene for porting the testsuite to 2009-07-26 11:11:47 +02:00
CHANGES Prepairing for a 2.6 release 2011-07-24 21:46:07 +02: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 release script 2011-07-24 21:48:29 +02:00
MANIFEST.in Re-release of 2.5.4 as 2.5.5 without docs 2010-10-18 14:38:03 +02:00
README.rst Added README 2010-10-17 15:58:08 +02:00
setup.cfg (codename Kong, released on September 12th 2009) 2009-09-13 00:23:27 -07:00
setup.py Re-release of 2.5.4 as 2.5.5 without docs 2010-10-18 14:38:03 +02: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