#17199: Base Template Loader should return the origin -------------------------------------+------------------------------------- Reporter: Kronuz | Owner: nobody Type: Bug | Status: closed Component: Template system | Version: master Severity: Normal | Resolution: invalid Keywords: | Triage Stage: Design Has patch: 1 | decision needed Needs tests: 0 | Needs documentation: 0 Easy pickings: 0 | Patch needs improvement: 0 | UI/UX: 0 -------------------------------------+-------------------------------------
Comment (by mitar): It is true that `origin` is currently used only for debugging purposes, but it could be used for much more. For example, in [https://github.com/stephenmcd/django-overextends django-overextends] it would allow to better detect cycles between templates. If a tag could know what is the filename of the current template it would know which templates it has to find when extending templates with the same name (should it hide the current one to prevent a cycle or not - it should hide only if current template filename is the same as the filename in `extends`). It is true that only origin name would be needed, not whole origin (with template content). -- Ticket URL: <https://code.djangoproject.com/ticket/17199#comment:9> Django <https://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 unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/064.cb89f4892667b6b788b56f128ae8a949%40djangoproject.com. For more options, visit https://groups.google.com/groups/opt_out.