-----Original Message-----
From: Andy Levine [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 03, 2001 8:14 PM
To: [EMAIL PROTECTED]
Subject: RE: [Templates] Figuring out what variables WILL be needed


Tony,

Great minds think alike !! If there isn't a way to do it the way I had
hoped, (i.e. access the "token stash", then this is what I had planned on
doing.

Thanks for your input.
Andy

-----Original Message-----
From: Tony Payne [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 03, 2001 8:08 PM
To: Andy Levine
Cc: [EMAIL PROTECTED]
Subject: RE: [Templates] Figuring out what variables WILL be needed



On Fri, 3 Aug 2001, Andy Levine wrote:

> So, I hoped I could ask the template engine, "Give me a list of values you
> need", it would return "Sure, (ip, hostname)" then I could get JUST the
ones
> I wanted. Then I would, process(template, list); and all would be well.

Would it be unreasonable to make the template author deal with this, so at
the top of the template they could do something like:

[% data = accessor.get('ip', 'hostname', 'etc') %]

and then later

Your IP: [% data.ip %]
Your hostname: [% data.hostname %]

?

++t

Tony Payne  :  Sr. Software Engineer  :  PETsMART.com  :  626-817-7151



Reply via email to