[Templates] naming conflict
Matthias.Dillier@snb.ch
Matthias.Dillier@snb.ch
Mon, 11 Mar 2002 17:52:31 +0100
This is a multi-part message in MIME format.
------=_NextPartTM-000-f07ebf68-34ce-11d6-88a9-dd2f86466f19
Content-type: text/plain; charset=us-ascii
Hi all,
I'm using TT 2.05 on AIX 4.3.3.
I have a problem with conflicting names. I use something like the
following:
----
[%
i.array=[ 1, 4, 7, ]
%]
xxx[% i.array %]yyy[% i.array.1 %]zzz
[%- FOREACH i=[ -10 .. 10 ] -%]
[%- END -%]
[%
i.array=[ 1, 4, 7, ]
%]
xxx[% i.array %]yyy[% i.array.1 %]zzz
----
After the FOREACH-loop, the array i.array is no longer defined. Surely, I
can use other names, but they would be less intuitive in my real examples
and I would have to change quite a lot of them.
Is there a way to solve this naming conflict. Is there a way to undefine
the variable i after the loop only with a TT-directive (no perl code)?
Thanks for your help
Matthias Dillier
------=_NextPartTM-000-f07ebf68-34ce-11d6-88a9-dd2f86466f19
Content-Type: text/plain;
name="SNB-Disclaimer.txt"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="SNB-Disclaimer.txt"
This message is for information purposes only. It may not be secure or error-free. The Swiss National Bank does not accept legal responsibility for any consequences resulting from e-mail use.
------=_NextPartTM-000-f07ebf68-34ce-11d6-88a9-dd2f86466f19--