Template:
==============================
[% USE Dumper %]

[% FOREACH p = persons %]
[% p.name %]
<br>
[% END %]

<br><br>

[% a=0; WHILE a < persons.size() %]
[% a; " : "; persons.$a.name %]
<br>
[% a=a+1 %]
[% END %]

<br><br>

[% Dumper.dump_html(persons) %]
==============================



Result:
==============================
abc
xyz


0 : 
1 : 


$VAR1 = bless( [
{
'content' => 'c1',
'name' => 'abc',
'id' => '21',
'image' => 'tree/21/4.gif'
},
{
'content' => 'c2',
'name' => 'xyz',
'id' => '22',
'image' => 'tree/22/wp1.gif'
}
], 'S5::Tree::ListObject' );
==============================

???
Subj.



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

Reply via email to