HTML-CTPP2
view release on metacpan or search on metacpan
lib/HTML/CTPP2.pm view on Meta::CPAN
* __INNER__ - accommodates the number from the second to the pre-last
iteration, otherwise undefined
* __OUTER__ - accommodates the number of first and last iteration, otherwise undefined
* __ODD__ - the number of an odd iteration. For the even one - undefined.
* __COUNTER__ - the number of current iteration.
* __RCOUNTER__ - whole number of the loop iterations minus the number of current iteration.
* __EVEN__ - opposite to the __ODD__ variable.
* __SIZE__ - the whole number of the loop iterations.
* __CONTENT__ - contains value of current iteration
=head2 TMPL_foreach
The second type of loops in CTPP - forward iteration through the data array
The operator corresponding with this action looks like the following:
<TMPL_foreach LOOP_NAME as ITERATOR>
<TMPL_var OBJ_DUMP(ITERATOR)>
( run in 0.740 second using v1.01-cache-2.11-cpan-71847e10f99 )