Re: passing data to TT?

[prev] [thread] [next] [Date index for 2005/01/26]

From: Jonathan Tweed
Subject: Re: passing data to TT?
Date: 21:48 on 26 Jan 2005
On 26 Jan 2005, at 21:43, raptor wrote:

> hi,
>
> how do u pass cdbi data to Template Toolkit for iteration ? which is 
> the most efficeint way?
> With DBI I normally pass a AoH .....

Pass in an iterator and use a while loop:

[% WHILE (row = rows.next) %]
[% row.field %]
[% END %]

Jonathan

passing data to TT?
raptor 21:43 on 26 Jan 2005

Re: passing data to TT?
Jonathan Tweed 21:48 on 26 Jan 2005

Generated at 12:39 on 05 Feb 2005 by mariachi v0.52