> and in my genes template:
>
> [% FOREACH obj IN geners.next() %]
> [% obj.gene_id %]
> [% obj.gene_name %]
> [% obj.gene_length %]
> et cetera [% END %]
If you were writing perl, this would translate into:
foreach my $obj($geners->next()){
}
Which definately also would be only one record, since $geners->next only
gets evaluated first.. expecting to expand to a liste that the foreach
loop would iterator over. It doesn't it returns only the first element.
Correct whould be:
while(my $obj = $geners->next()){
}
It is left to you to translate it back to TT.. (I use HTML::Mason) which is
perl.
Jesper
--
Jesper Krogh
_______________________________________________
List: http://lists.rawmode.org/cgi-bin/mailman/listinfo/dbix-class
Wiki: http://dbix-class.shadowcatsystems.co.uk/
IRC: irc.perl.org#dbix-class
SVN: http://dev.catalyst.perl.org/repos/bast/trunk/DBIx-Class/
Searchable Archive: http://www.mail-archive.com/[email protected]/