Re: Re: [PEPr] Comment on HTML::Template_Savant

From: Date: Wed, 02 Jun 2004 03:53:45 +0000
Subject: Re: Re: [PEPr] Comment on HTML::Template_Savant
References: 1 2  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-29850@lists.php.net to get a copy of this message
Greg Beaver wrote:
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: [..]
without having to modify the backend logic (only the templates themselves).
Yeah, we are talking about the very same thing and I completely agree with you. It would be great to have such a thing in PEAR. However, my opinion is that Savant is a template engine just like the others in PEAR. It shouldn't be forced to follow any conventions that the other engines do not. I wish I could dive into all of the template engines in PEAR to summarize the differences between their APIs, so an RFC and/or wrapper class(es) could be written for them. But imho this should be done seperately from Savant and Savant should be handled just like the other engines in PEAR. Next week I'll have some free time to take a look at this if this is the good way to go. Let's see your opinion first. Regards, Norbert

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