On 12/18/07, Michael Elsdörfer <[EMAIL PROTECTED]> wrote:
> James Bennett schrieb:
> > Manually call get_template() or select_template(), and stuff the
> > resulting Template object into a module-global variable somewhere.
> > Then just re-use it, calling render() with different contexts, each
> > time you need it.
>
> Is there anything speaking against building that behaviour directly into
> Django?

I was curious of the same thing.  The only downside I see is that
templates wouldn't "reload" automatically if you changed them.  But
you could disable this when DEBUG=True.  And most people are used to
the idea of reloading Apache if there is a change in a .py file.

-Rob

--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to