[Catalyst] One result / Multiple results

Bill Moseley moseley at hank.org
Mon May 30 07:37:19 CEST 2005


On Mon, May 30, 2005 at 12:22:34AM -0500, David Naughton wrote:
>  [% FOR a_list = one_result.data.list %]a:[% a_list.name %]#
>  [% END %]
> 
> Both "one_result" and "multiple" are CDBI Iterators, so why not this
> instead?
> 
>  [% WHILE (a_list = one_result.next) %] ... [% END %] 

It's late and I'm asking without testing or thinking much about this,
but seems like I'd want to do this:

   [% FOR a_list = one_result %]

in other words, have the fact that it's an iterator be transparent
inside TT -- as if it was a plain array ref.

-- 
Bill Moseley
moseley at hank.org




More information about the Catalyst mailing list