On Fri, Jun 08, 2001 at 10:03:26AM -0700, Tavis Rudd wrote:
> I just thought of a new directive that might be 
> very useful in TemplateServer #for loops:
> #slurp --- for slurping up the whitespace that follows it,
> upto and including the first \n

Plow does something like this for blocks.  A regex matches "before the
block", "the block body" and "after the block" (the block
tags themselves are thus removed).  Then for all parts except the first, a
single leading newline is removed if present.

The presumption is that a newline after the tag is
a false newline just to make the tag stand out.  But if there's
no newline, it must be an inline tag and we shouldn't interfere with
the whitespace.  So far it's worked in all the occasions I've used it.

-- 
-Mike (Iron) Orr, [EMAIL PROTECTED]  (if mail problems: [EMAIL PROTECTED])
   http://iron.cx/     English * Esperanto * Russkiy * Deutsch * Espan~ol

_______________________________________________
Webware-devel mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/webware-devel

Reply via email to