--- Franco Bagnoli <[EMAIL PROTECTED]>
wrote:
> I often deal with structured arrays (LoL), say
>
> [%a = [0, [1,2],[3,4], [4,5,6]] %]
>
> and I need to print them in some form,
> sometimes just flattened.
>
> Join doesn't do the job, and neither merge (it
> is undocumented, isn't
> it?)
Yeah, i want my map! :P
If you just want the list flattened, you can
trick scalars into being lists with list:
[% container = [0, [1,2],[3,4],[4,5,6],7,8,9] %]
<ol>
[% FOREACH item = container %]
[% FOREACH i = item.list %]
<li>[% i %]</li>
[% END %]
[% END %]
</ol>
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://lists.template-toolkit.org/mailman/listinfo/templates