Hi,

Django now uses two stage template loading process:

1. First find_template_source() which uses settings.TEMPLATE_LOADERS
to actually load template
2. get_template_from_string() which is essentially a factory function
for Template objects

I am thinking about integrating get_template_from_string()
functionality into Template Loaders classes. I think it will have
numerous benefits (like possible caching for people who really need
it, and many other uses).

It's possible to keep origin and source attributes on templates, so
this change won't affect anyone who needs to get template source when
template is loaded.

If everyone thinks it's a good idea I will work on this patch.

But perhaps I am overlooking something and it's not possible or not
feasible for some reasons?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to