document the built-in loop counter variable
This commit is contained in:
parent
d675ed5a29
commit
6ceb0ff0be
1 changed files with 8 additions and 1 deletions
|
|
@ -186,6 +186,8 @@ Loops iterate over a list of data output for each pass in the loop. Loops are sl
|
|||
<p>
|
||||
<b>Loop Conditions</b><br />
|
||||
Loops come with special condition variables of their own. They are __FIRST__, __ODD__, __INNER__, and __LAST__.
|
||||
There is also a loop counter variable, __COUNTER__, which keeps track of how many times the
|
||||
loop has been executed.
|
||||
</p>
|
||||
|
||||
<p><i>Examples:</i></p>
|
||||
|
|
@ -211,13 +213,18 @@ Loops come with special condition variables of their own. They are __FIRST__, __
|
|||
<TMPL_IF __LAST__>
|
||||
This only outputs on the last pass.
|
||||
<TMPL_IF>
|
||||
|
||||
Loop number: <TMPL_VAR __COUNTER__>
|
||||
This keeps track of how many times you have gone through the loop.
|
||||
<TMPL_IF>
|
||||
</TMPL_LOOP>
|
||||
</pre>
|
||||
|
||||
<p><i>NOTE: This only documents WebGUI's default template language, HTML::Template. If the Template Type
|
||||
has been set to some other language you will need to consult the documentation for it.</i></p>.
|
||||
<p><i>Some examples have been borrowed from the HTML::Template documentation.</i></p>.
|
||||
|,
|
||||
lastUpdated =>1146243644,
|
||||
lastUpdated =>1157490959,
|
||||
},
|
||||
|
||||
'template variable title' => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue