Dave Cash wrote:

Well, the for me the problem is more complicated: I have iterator which
returns numbers:
[% WHILE (var = iterator.next) %] ... [% END %]
If iterator.next returns 0 the loop fails :(



If your iterator is a Template::Iterator, you can just do:


[% FOREACH var IN iterator %][% var %][% END %]

Thanks Dave for a good try, but I have my
own iterator (similar to Class::DBI::Iterator),
which returns next value only by calling iterator.next,
so it wouldn't work.


Sincerely, Alex



_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to