Re: [PEPr] Comment on HTML::Template_Savant
| From: | Greg Beaver | Date: | Wed, 02 Jun 2004 02:12:47 +0000 |
| Subject: | Re: [PEPr] Comment on HTML::Template_Savant | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-29848@lists.php.net to get a copy of this message | ||
Pepr wrote:
Paul Jones (http://pear.php.net/user/pmjones) has commented on the proposal for HTML::Template_Savant. Comment: Norbert Mocsnik wrote this in reference to Savant being the base for a common PEAR template engine:I wasn't talking (and I think Lukas wasn't as well but he can correct me) about the templates themselves, only the backend variable assignment, template assignment and fetching. Smarty uses assign() and fetch(), HTML_Template_IT uses setVariable() and get() (sort of) to do the same/similar things. I wonder if it might be possible to create files similar to db_wrapper.php found in MDB that allows users to change two lines: require_once 'HTML/Template/*.php'; $templ = new HTML_Template_*; to require_once 'HTML/Template/Savant.php'; $templ = new HTML_Template_Savant; without having to modify the backend logic (only the templates themselves). GregAlthough it would be good to see a common API for the template engines of PEAR, I don't feel it has to be done now, with Savant. I'm using Savant since a week and it worked great from the beginning. As it's fully PEAR-compatible (hence the proposal), I'd be happy to see it in PEAR to use the common bug system, manual, whatever.. I think Savant should be allowed to be in PEAR as it's a great tool and it's just as good as the other 5 template engines. When someone someday comes up with the idea of contributing something regarding to API-unifying, he/she will be allowed to do it. I don't see why this should be solved in Savant when the other engines doesn't solve this.I think that Greg and I are saying that it *could* be done, *might* be done, using Savant, not that it *must* be done.