Re: Templates in PEAR

From: Date: Wed, 02 Jun 2004 16:18:51 +0000
Subject: Re: Templates in PEAR
References: 1 2  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-29871@lists.php.net to get a copy of this message
On Jun 2, 2004, at 11:13 AM, Lukas Smith wrote:
So I see room for 2 different template engines. I see limited use in making the API replaceable, but for all but Savant (which is bound to the php syntax in the templates anyways) it seems fairly doable to support different template syntaxes.
Not entirely accurate. :-) Savant is not "bound" to PHP syntax in the templates, it just uses that as the easiest most common default. Savant, because of its output filters, can very easily support regex parser logic. In such a case, Savant acts as a base to assign variables, display() includes the non-PHP template (which of course is interpreted in HTML mode without <?php ... ?> tags) and the output filter then does its regex magic on the output. Voila, regex translation support. -- 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: a collaborative online documentation system. http://wiki.ciaweb.net/yawiki/index.php?area=Yawiki Yawp: a single-file foundation for PHP applications. http://phpyawp.com/

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