Hi,
On 1/19/11 5:40 AM, Jean-Francois wrote:
and in an implementation {% title = 'Hello World' %}
Child templates are evaluated first, which means that you can set
variables in the child and test the variables for being set in the parent:
child.html:
{% extends "layout.html" %}
{% set title = "Hello World" %}
{% block body %} ... {% endblock %}
layout.html:
<title>{{ title or 'Default Title' }}</title>
{% block body %}{% endblock %}
Regards,
Armin
--
You received this message because you are subscribed to the Google Groups
"pocoo-libs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/pocoo-libs?hl=en.