File: test_loop4.tmpl

package info (click to toggle)
libhtml-template-pro-perl 0.9524-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 1,512 kB
  • sloc: ansic: 1,841; perl: 1,474; yacc: 404; pascal: 118; makefile: 6
file content (20 lines) | stat: -rw-r--r-- 365 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<HTML>
<body>
<H1> test_loop4 </H1>

We test inner loop variables

<table>
<TMPL_LOOP NAME=HASHREF1> 
<tr>
<td>first:<tmpl_var NAME="__first__"></td>
<td>last: <tmpl_var NAME="__last__"></td>
<td>odd:<tmpl_var NAME="__odd__"></td>
<td>inner:<tmpl_var NAME="__inner__"></td>
<td>count:<tmpl_var NAME="__counter__"></td>
</tr>
</tmpl_loop> 
</table>

</body>
</HTML>