Go to file
2015-07-26 19:49:40 +02:00
artwork documentation style updates, added print css 2008-05-06 12:14:23 +02:00
docs Update FAQ about unsupported Python versions 2015-06-01 17:15:43 +02:00
examples change py2 print statements to py3 2015-03-22 14:25:15 +01:00
ext Fix literal \ characters at the end of a string 2015-03-20 11:50:14 -07:00
jinja2 Bump version number to 2.8 2015-07-26 19:49:40 +02:00
scripts Fix doctests 2015-03-22 14:22:52 +01:00
tests Add 'base' parameter to 'int' filter 2015-04-29 16:45:46 +01:00
.gitignore Added .egg to .gitignore 2013-05-20 01:32:44 +01:00
.travis.yml Fix travis 2015-03-22 14:32:16 +01:00
AUTHORS Add myself. 2013-05-18 10:39:12 +01:00
CHANGES Release date is today. 2015-07-26 19:48:17 +02:00
LICENSE Fixed inconsistency in LICENSE file. 2009-01-06 13:10:58 +01:00
Makefile Rename testsuite to tests and suggestions 2015-03-22 18:03:14 +05:30
MANIFEST.in Added nicer test finder from Flask 2013-05-20 11:51:37 +01:00
README.rst Amend to #453 2015-05-17 17:58:09 +02:00
setup.cfg Actually don't run doctests 2015-03-22 14:36:42 +01:00
setup.py Bump version number to 2.8 2015-07-26 19:49:40 +02:00
tox.ini Rename testsuite to tests and suggestions 2015-03-22 18:03:14 +05:30

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 make the template designer's
life difficult by restricting functionality too much.

For more information 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/docs/
.. _Jinja2 tip: http://jinja.pocoo.org/docs/intro/#as-a-python-egg-via-easy-install

Builds
------

+---------------------+------------------------------------------------------------------------------+
| ``master``          | .. image:: https://travis-ci.org/mitsuhiko/jinja2.svg?branch=master          |
|                     |     :target: https://travis-ci.org/mitsuhiko/jinja2                          |
+---------------------+------------------------------------------------------------------------------+
| ``2.7-maintenance`` | .. image:: https://travis-ci.org/mitsuhiko/jinja2.svg?branch=2.7-maintenance |
|                     |     :target: https://travis-ci.org/mitsuhiko/jinja2                          |
+---------------------+------------------------------------------------------------------------------+