Re: Play nice! Re: Savant/Flexy/Foo template engines

From: Date: Thu, 10 Jun 2004 19:03:54 +0000
Subject: Re: Play nice! Re: Savant/Flexy/Foo template engines
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-30417@lists.php.net to get a copy of this message
Now that I think about it...
* An extended toString() seems the logical place for output filters to be applied.
I'm still not convinced that output filters are anything more that preg_replaces on the output to toString.. -
I think that's exactly what they are. Is that bad? How else is one to implement an output filter? Yes, streams allow you to register filtering functions, but not everybody knows streams that well (I sure don't :-).
... might use str_replace, too, for speed, or ereg (for whatever reason). -- Paul M. Jones Savant: the simple alternative to Smarty for PHP. http://phpsavant.com/ DB_Table: build RDBMS tables and XHTML forms in one PHP class. http://wiki.ciaweb.net/yawiki/index.php?area=DB_Table Yawiki: your collaborative online documentation system. http://yawiki.com/ Yawp: a single-file foundation for PHP applications. http://phpyawp.com/

« previous php.pear.dev (#30417) next »