Sunday, October 24, 2010

Embed the file system path to a template??

Hello,

to assist those responsible for the content of "my" site I would like
to embed the file-system path to the template in the rendered
template, so that when they find something they are dissatisfied with
on a page they can do "View Source" and easily identify the correct
template to update.

I.e. I would like to embed something like this at the top of all the
templates:

<!-- This template is located in: {{ template_path }} -->

Is this possible?

Joakim

--
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 django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment