> [% FOREACH i IN [0 .. LISTSIZE-1] %]
> [% FOREACH i IN [0 .. LISTSIZE - 1 ] %]
> [% FOREACH i IN [0 .. (LISTSIZE-1) ] %]
> [% FOREACH i IN [0 .. (LISTSIZE - 1) ] %]

Each of those will work in TT3 (which is on its way).  Those do not currently 
work on TT2.18.

That syntax does work on CGI::Ex::Template.

perl -e '
use CGI::Ex::Template;
CGI::Ex::Template->new->process(\q{[% FOR i = [1..10-1] ; i ; END %]});
print "\n"'

123456789

Paul

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

Reply via email to