Let me improve my suggestion, so that it mostly solves James' concern
and can be explained in one sentence:

---------
Multiple blocks with the same name would be allowed, as long as all of
them have the same content.
---------

This would solve my (and others, not including SmileyChris, sorry!)
problem neatly - the template would be:

<html>
<head>
<title>Bug System - {% block title %}Page Title{% endblock %}</title>
</head>
<body>
<h1>{% block title %}Page Title{% block title %}</h1>
{% block body %}
</body>
</html>

It would mostly solve James' concern because his example won't work -
You can't define a block at the beginning of the file and then use it
a few times. It's true that you can define it in a more specific
template, but I believe that most people simply won't think of that.

And this improved suggestion has no complicated rules, and causes no
ambiguities.

Well, what do you think?

Noam


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-developers@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-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to