[Templates] Passing database results incrementally?

Perrin Harkins pharkins@etoys.com
Thu, 31 Aug 2000 10:50:03 -0700 (PDT)


On Thu, 31 Aug 2000, Michael Mayo wrote:
> 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?

Yes and yes.  Build a subclass of Template::Iterator.
- Perrin