[Templates] Passing $context to the providers, good or bad idea?
Yann Kerhervé
yann.kerherve at gmail.com
Mon Feb 18 20:07:47 GMT 2008
On Feb 18, 2008 11:59 AM, Perrin Harkins <perrin at elem.com> wrote:
> On Feb 17, 2008 7:04 PM, Yann Kerhervé <yann.kerherve at gmail.com> wrote:
> > If this is a bad idea, how could I do it differently (and correctly?)
>
> What are you trying to do that requires access to the context?
>
My users can write templates (kind of...) and specify [% INCLUDE 'my:
header.tt' %]
I want my provider to know that 'header.tt' comes from one specific user and
not another (to be able to load the correct one).
Yann
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.template-toolkit.org/pipermail/templates/attachments/20080218/37a2aee3/attachment.htm
More information about the templates
mailing list