Hmm, I think my question is not specific enough ;)
The problem at hand is...I have a big database query that takes some time. The user doesn't get to see anything till the tcl page has run through. Then ad_return_template is being invoked and the html is being generated.
I want that "one-off" thing to be broken down into chunks, ideally like this:
- return some information
- loop through the database query's result and return it in chunks
- return some more information.