I'm having trouble including a template inside another template. My
block tags inside the included file don't seem to get populated when I
do this.

In my simple example below, I'm trying to split out the header
information from my base template. Before I split it out, the block
"title" tags are evaluated properly. When I split out the header and
include it, I lose the title information.

I'm not sure if I'm doing something stupid or if I'm trying something
that isn't designed to work this way. Any advice would really be
appreciated.

Original base.html:

<html>
<head>
<title>{% block title %}{% endblock %}
</head>
<body>
{% block content %}{% endblock %}
</body>
</html>

base_header.html:

<html>
<head>
<title>{% block title %}{% endblock %}
</head>

new base.html:

{% include "base_header.html" %}
<body>
{% block content %}{% endblock %}
</body>
</html>


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to