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

From: Date: Wed, 09 Jun 2004 21:09:00 +0000
Subject: Re: Re: Play nice! Re: Savant/Flexy/Foo template engines
References: 1 2 3  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-30340@lists.php.net to get a copy of this message
Paul M Jones wrote:
On Jun 9, 2004, at 3:59 PM, Philippe Jausions wrote:
Greg Beaver wrote:
I see this as an opportunity to provide a common template interface to some existing template engines.
I couldn't agree more: Please review the code at: http://www.11abacus.com/dev/pear/HTML_Template_Interface.phps I have implemented the interface for several template engines, see: http://www.11abacus.com/dev/pear/
...
Note: This is PHP5 code, but could possibly be downgraded to PHP4
If were downgraded to PHP4 for now, and a PHP5 added later, I'd be happy to contribute -- not everybody is on PHP5 yet, and won't be for a while even after it passes RC.
The PHP5 is really to formalize the "interface" concept into the template engine, nothing PHP5-like is really necessary to actually implement the interface as defined. As is the source file have a PHP5 syntax to validate all the concepts inside. Downgrading to PHP4 would simply be omit the "interface" declaration and "implements" references, removing "public", "private" and other PHP5 keywords... -Philippe

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