[Templates] Problem with IMPORT on 1.07
Jonas Liljegren
jonas@paranormal.se
Tue, 15 Aug 2000 22:38:28 +0200 (CEST)
On 15 Aug 2000, David Hodgkinson wrote:
>
> I am this -><- close to getting the TT into use at a client site. BUT!
> I have a problem with IMPORT. I can't even get the example in the
> manual to work:
>
>
>
> [% user = {
> name = 'John Doe'
> id = 'jdoe'
> }
> %]
>
> [% IMPORT user %]
> Name: [% name %] ID: [% id %]
You could do:
[%
BLOCK user;
SET name = 'John Doe';
SET id = 'jdoe';
END;
%]
[% PROCESS user %]
Name: [% name %] ID: [% id %]
But I'm not clear on what you want to do...
--
/ Jonas - http://jonas.liljegren.org/myself/en/index.html