Is there any way to check if a template block has been defined?

Something like:

{%if title%} : {% endif %}{% block title %}{% endblock %}

Looking at:

http://www.djangoproject.com/documentation/templates/#template-inheritance

it doesn't look like there is. Can anyone suggest a workaround?

Basically, if a sub template specifies the title, then I was to prepend"

SITENAME :

otherwise, I just want:

SITENAME

mike

--~--~---------~--~----~------------~-------~--~----~
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