On Thursday, February 28, 2002 2:34 AM +0000 Myk Melez <[EMAIL PROTECTED]> 
wrote:

> Attached to this message is my first shot at adding a FLUSH directive to
> TT that flushes generated content out to the output stream.

Cool stuff that many people may find useful, but...

> This implementation of FLUSH is "dumb" in that it doesn't handle nested
> block processing.  If you FLUSH within a block you flush the block's
> $output without flushing its containing block's $output, reordering the
> content, so you have to be careful about where you put the directive.

I may have misunderstood this (my TT experience is minimal), but it seems 
to me that in general, if you use this FLUSH you must make a clear 
distinction between templates that may be INCLUDEd or whatnot inside a 
looping control structure, and those that may not.  This might not cause 
you any problems, but it does muddy the clean, pure waters of TT a bit.  [ 
For some value of "clean, pure" and "a bit".  :-) ]

Or maybe your solution can be refined so there's a way to detect outer 
blocks automatically.  I imagine a stack would figure in any such 
refinement, but I'm too new to TT to venture any further than that.

Sorry for any clueless newbyisms.

Paul.

-- 
Paul Hoffman :: Taubman Medical Library :: Univ. of Michigan
[EMAIL PROTECTED] :: http://www-personal.umich.edu/~nkuitse/


Reply via email to