Skip to content
Myr

Added README

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Armin Ronacher · committed by Armin Ronacher · parent f858d62 · Browse files · 1 file+38 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+38 added−0 removed

  • other:+38 added−0 removed

1 file+38 added−0 removed

added:README.rst+38 added
1Jinja22~~~~~~34Jinja2 is a template engine written in pure Python. It provides a5`Django`_ inspired non-XML syntax but supports inline expressions and6an optional `sandboxed`_ environment.78Nutshell9--------1011Here a small example of a Jinja template::1213 {% extends 'base.html' %}14 {% block title %}Memberlist{% endblock %}15 {% block content %}16 <ul>17 {% for user in users %}18 <li><a href="{{ user.url }}">{{ user.username }}</a></li>19 {% endfor %}20 </ul>21 {% endblock %}2223Philosophy24----------2526Application logic is for the controller but don't try to make the life27for the template designer too hard by giving him too few functionality.2829For more informations visit the new `Jinja2 webpage`_ and `documentation`_.3031The `Jinja2 tip`_ is installable via `easy_install` with ``easy_install32Jinja2==dev``.3334.. _sandboxed: http://en.wikipedia.org/wiki/Sandbox_(computer_security)35.. _Django: http://www.djangoproject.com/36.. _Jinja2 webpage: http://jinja.pocoo.org/37.. _documentation: http://jinja.pocoo.org/2/documentation/38.. _Jinja2 tip: http://dev.pocoo.org/hg/jinja2-main/archive/tip.tar.gz#egg=Jinja2-dev