I want to do a FOREACH through several lists.

I find myself doing:

[% one = [ "a", "b", "c" ] %]
[% two = [ "d", "e", "f" ] %]
[% three = [ "g", "h", "i" ] %]
[% unwanted_list = [] %]
[% FOREACH item = unwanted_list.merge(one, two, three) %]
   [% item %]
[% END %]

Am I missing a trick?

I can't do

[% FOREACH item = [ one, two, three ] %]

because that is a list of lists.

I can't do:

[% FOREACH item = merge(one, two, three) %]

Because the Virtual Method needs to hand off a list.

I can't do:

[% FOREACH item = []merge(one, two, three) %]

Either :-(

I'm left with the feeling that I'm missing something obvious.

Andrew



_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://lists.ourshack.com/mailman/listinfo/templates

Reply via email to