Skip to content
Myr

[svn] updated jinja docs

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

--HG-- branch : trunk

authored by Benjamin Wiegand · committed by Benjamin Wiegand · parent decb73b · Browse files · 1 file+3 added−3 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+3 added−3 removed

  • other:+3 added−3 removed

1 file+3 added−3 removed

modified:docs/src/designerdoc.txt+3 added-3 removed
278 unmodified lines
279 {% for user in users %}280 {{ show_user(user) }}281 {% endfor %}282283You can also specify more then one value:283You can also specify more than one value:284285.. sourcecode:: html+jinja286287 {% macro show_dialog title, text %}
9 unmodified lines
297===========298299The most powerful part of Jinja is template inheritance. Template inheritance300allows you to build a base "skeleton" template that contains all the common301elements of your site and defines **blocks** or **markers** that child301elements of your site and defines **blocks** that child302templates can override.303304Sounds complicated but is very basic. It's easiest to understand it by starting305with an example.
20 unmodified lines
326 {% block content %}{% endblock %}327 </div>328329 <div id="footer">330 {% block "footer" %}330 {% block footer %}331 &copy; Copyright 2006 by <a href="http://mydomain.tld">myself</a>.332 {% endblock %}333 </div>334 </body>
98 unmodified lines