Hi all -

I have a base template that looks like:

{% include "doc_head.tmpl" %}
{% include "header.tmpl" %}
{% include "menu.tmpl" %}
{% include "extra.tmpl" %}
<div id="content">
{% block content %}
<h1>{{ section.header }}</h1>

<p>{{ section.data }}</p>
{% endblock %}
</div>
{% include "footer.tmpl" %}
{% include "doc_foot.tmpl" %}

and doc_head.tmpl looks like:

<!DOCTYPE HTML PUBLIC "-//W4C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd";>
<html>
    <head>
        <title>{% block title %}Section Title{% endblock %}</title>
        <meta http-equiv="content-type" content="text/html;
charset=iso-8859-1" />
        <link rel="stylesheet" type="text/css" href="/misc/style.css" />
    </head>
<body>
<div id="container">

The idea being that my individaul page templates can simply {% inherit
"base.tmpl" %} and then simply do something like:

{% block title %}The title for the particular template{% endblock %}

However, when I render this, it turns out to *always* display with the
default content from doc_head.tmpl (ie "Section Title").  What am I
doing wrong here?

Thanks in advance.

-- 
Cole Tuininga
http://www.tuininga.org/

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" 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/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to