Re: Play nice! Re: Savant/Flexy/Foo template engines
| From: | Greg Beaver | Date: | Thu, 10 Jun 2004 13:09:46 +0000 |
| Subject: | Re: Play nice! Re: Savant/Flexy/Foo template engines | ||
| References: | 1 2 3 4 5 6 7 8 9 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-30381@lists.php.net to get a copy of this message | ||
Alan Knowles wrote:
c) What is missing d) What could be removed?Hi, I vote for "Template" with extension "Template_Flexy," not to be too redundant. Obviously, all the compile code has to go - that should be in Template_Flexy, not in Template. a nice compile() method that simply returns the template should be the base method. In addition, I vote for all the flexy options to be in the Template_Flexy options array, and merged into the global, as you described. Perhaps Paul could have a go at de-flexying the base template? It's way too customized for flexy, the code he strips (and adds) should give a good idea of what is not generic template code, but is specific to flexy, as well as what is missing. Maybe Stephan could comment on how hard it would be to extend "Template" to do patTemplate as well? Greg