[Templates] Passing $context to the providers, good or bad idea?

Perrin Harkins perrin at elem.com
Tue Feb 19 20:17:31 GMT 2008


On Feb 19, 2008 2:35 PM, Yann Kerhervé <yann.kerherve at gmail.com> wrote:
> Yeah, I thought about that but it looked more complicated with the TT
> singleton instance I'm using

It shouldn't be.  If you're not sure how to change INCLUDE_PATH on an
existing object, search the mailing list archive.

> and less flexible (I probably wouldn't be able
> to change the user in the template ([% user = my_other_user %]).

You lost me there.  Don't you pass that in when you call process()?

- Perrin



More information about the templates mailing list