[Templates] Passing database results incrementally?
Michael Mayo
michael-a-mayo@worldnet.att.net
Thu, 31 Aug 2000 12:51:21 -0400
I need to retreive a fairly large number of results from a database,
and print them to the browser window. However, I'd like to use
Template-Toolkit to separate the programming logic from presentational
logic.
I realize I could store the results in some sort of data structure and
then pass everything to TT, but this would both require excessive
memory and be excessively slow (waiting for all results before even
the 1st one can be seen). Is there any way to pass the results one at
a time to Template Toolkit? Does the Iterator module have something
to do with this?
Thanks,
-Mike