[Templates] Interaction with DBI & TT

Perrin Harkins perrin@elem.com
Mon, 25 Mar 2002 09:54:37 -0500


Paul Makepeace wrote:
> In the template, I am trying [% FOREACH item = sth().execute %] ... [%
> END %]

Instead of doing that, why don't you just copy the data you want into a 
structure to pass to the template?  Then you can do proper error 
handling in your perl code, and use optimizations like bind_columns.

- Perrin