Martijn van den Burg writes:
> On Tuesday 05 November 2002 14:32, Aleksey Serba wrote:
> > Tuesday, November 05, 2002, 4:00:31 PM, you wrote:
> > MvdB> fruits[1 - 1] = new fruitObj('apple','red');
> >
> > Instead of __counter__ you may use your own counter:
>
> The work-arounds are easy but I'd like a clean solution.
Does it work to simply do something like this?
fruits = [<TMPL_LOOP fruit>
new fruitObj('<TMPL_VAR type>', '<TMPL_VAR colour>'),</TMPL_LOOP>
];
Look, Ma, no __counter__!
--
Aaron Crane * GBdirect Ltd.
http://training.gbdirect.co.uk/courses/perl/
-------------------------------------------------------
This sf.net email is sponsored by: See the NEW Palm
Tungsten T handheld. Power & Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0001en
_______________________________________________
Html-template-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/html-template-users