On Sat, 2007-06-16 at 08:02 +0000, kahless wrote:
> hi,
> 
> is there a way to extend a template with the same name, but in another
> template loader ?
> more specific.. it would be nice if i could customize only specific
> blocks of templates by simply adding a new template loader (or another
> template directory) and creating a file with the same name as the
> original template..

You can do whatever you like with template loaders, so just write your
own to do exactly this. Note that you can't specify which loader is used
to load the template in the extends tag, but the template loaders are
tried in the order they are specified in the settings file, so put your
customised loader as the first one. The template loader itself is
responsible for working out which directory to look in (the
TEMPLATE_DIRS settings is read by the filesystem.py loader, for
example), so you have complete control here.

Regards,
Malcolm


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