#13984: template.select_template should return template_name as well. -----------------------------+---------------------------------------------- Reporter: DaNmarner | Owner: nobody Status: new | Milestone: Component: Template system | Version: SVN Keywords: | Stage: Unreviewed Has_patch: 1 | -----------------------------+---------------------------------------------- The whole purpose of this function is to find out which possible location of a certain template is valid. It make sense to return the compiled template as well as its location.
Here's a common use case: A template is found by select_template, however, this template extends an "base.html" whose is located in the same directory, which is unknown until runtime as well. So the extends tag fails. If select_template returns the location of the template it finds, then this info could be passed into an context and thus make the extends tag useful again. -- Ticket URL: <http://code.djangoproject.com/ticket/13984> Django <http://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-upda...@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.