Re: Play nice! Re: Savant/Flexy/Foo template engines
| From: | Tomas V.V.Cox | Date: | Thu, 10 Jun 2004 00:49:41 +0000 |
| Subject: | Re: Play nice! Re: Savant/Flexy/Foo template engines | ||
| References: | 1 2 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-30353@lists.php.net to get a copy of this message | ||
Philippe Jausions wrote:
Greg Beaver wrote:Well, a constructive message, finally. From one point of view, this would help a lot classess and apps that don't care about the template you use, for ex: Quickform or any other public web app. In the other side, that still force users to download, install and learn how to write their templates, and btw the methods could be abstracted but not so the params they accept, so it's a partial solution. I'd really preffer the utopia of just one complete engine which makes happy, let's say 60% of users. PHP has only one set of functions for each area, there is no more space to get lost. This "let's abstract the world" philosophy it's getting me a little bit nervous ;) Sounds like we need to bug someone at PECL for doing that in C which eventually goes bundled with PHP, forgetting all this "problem".I see this as an opportunity to provide a common template interface to some existing template engines.I couldn't agree more: This is a topic I have posted several times before, and I think I have developed a working solution for that.
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/
Peer review comments would be appreciated.I'd go with open() instead of openTemplate(). The rest looks quite rational. Nice research work, Tomas V.V.Cox