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