- or download this
<TMPL_LOOP NAME=FILES>
Name: <TMPL_VAR NAME=NAME><br>
</TMPL_LOOP>
- or download this
$template->param(
FILES => [ map +{ NAME => $_ }, @files ],
);
- or download this
<TMPL_LOOP NAME=FILES>
<TMPL_VAR NAME=NUM>. <TMPL_VAR NAME=NAME><br>
</TMPL_LOOP>
- or download this
$template->param(
FILES => [ map +{ NUM => $_+1,
...
0..$#files
],
);