There are backwards-compatibility concerns as a leading dot can no longer be used in a template name, though if developers are following the advice about template namespacing it wouldn't be a problem.
Still, I am not sure if the Django Template Language should evolve new features like this. Is there any prior art in Jinja2? I couldn't find any based on this answer: http://stackoverflow.com/questions/2180247/does-the-jinja2-templating-language-have-the-concept-of-here-current-director I see you created a pull request: https://github.com/django/django/pull/6318 On Monday, March 21, 2016 at 4:47:49 AM UTC-4, Florian Apolloner wrote: > > > > On Monday, March 21, 2016 at 8:25:46 AM UTC+1, Vitaly Bogomolov wrote: >> >> Here is code, that implement this feature for Django 1.4/1.9: >> https://github.com/vb64/django.templates.relative.path >> <https://www.google.com/url?q=https%3A%2F%2Fgithub.com%2Fvb64%2Fdjango.templates.relative.path&sa=D&sntz=1&usg=AFQjCNENVKvowwVUqqxY8-tWwb1Gp-03xw> >> > > Since we are (usually) talking about paths, I would prefer "./base.html" > and "../base.html", if at all. Mimicking python import paths here seems > counter intuitive to me. If the changes against core Django are relatively > minimal and a nice patch with tests were put up, I would not stand in the > way of merging. > > Cheers, > Florian > -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-developers+unsubscr...@googlegroups.com. To post to this group, send email to django-developers@googlegroups.com. Visit this group at https://groups.google.com/group/django-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/dc04291b-e48b-4033-b628-56ed6751f643%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.