In the docs, regarding nested loops it says:
$template->param(LOOP => [{ name => 'Bobby',
nicknames => [{ name => 'the big bad wolf' },
{ name => 'He-Man' },
],
},
],
);
so assuming each iteration of the loop might not contain nested loop
data, what would the tmpl look like?
<!-- TMPL_LOOP name="LOOP" -->
<!-- TMPL_VAR name="name" -->
<!-- TMPL_IF nicknames -->
<!-- TMPL_LOOP name="nicknames" -->
<!-- TMPL_VAR name="name" -->
<!-- /TMPL_LOOP -->
<!-- /TMPL_IF -->
<!-- /TMPL_LOOP -->
I'm assuming nicknames is the name of the nested loop, but this is not
working for me. I'm a little, uhh, confused.
Who can set me straight?
Regards,
Andrew
-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The best
thread debugger on the planet. Designed with thread debugging features
you've never dreamed of, try TotalView 6 free at www.etnus.com.
_______________________________________________
Html-template-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/html-template-users