RE: [PEAR-DEV] Package Proposal: HTML_Template_Dummy

From: Date: Fri, 18 Jul 2003 21:33:42 +0000
Subject: RE: [PEAR-DEV] Package Proposal: HTML_Template_Dummy
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-18403@lists.php.net to get a copy of this message
> From: Paul M Jones [mailto:pjones@ciaweb.net] > Sent: Friday, July 18, 2003 11:16 PM > > On Friday, Jul 18, 2003, at 15:44 US/Central, Joshua Eichorn wrote: > > > Wouldn't the solution be to only have template engines that are truly > > different like this one instead of a bunch of identical ones > > That's my opinion too; basically, all the template engines in PEAR are > variations on two themes. > > Theme 1: Load a template with its own specific markup, > parse the markup into values/loops/structures, (maybe > cache the html) and output the parsed template. > > Theme 2: Load a template with its own specific markup, > compile the template markup into a PHP script, (maybe > cache the compiled script) and execute the compiled > script (and maybe cache the resulting html). > > Dummy is neither of those. It only acts as an encapsulator for display > logic (so as to separate it from business logic) where the logic is > itself already in PHP. Dummy is Theme two with one step removed. So in my opinion it still fits in the Theme. It is just a Lite variant of it. To me the differences are more about pulling and pushing data. 1) Template engines like IT require you to push data into the template. 2) Template engines like Xipe require you to pull data from within the template. Dummy fits 2) and therefore it should be integrated into 2). Nevermind the mess we already have. Don't let it fool you to believe that template engines are any different than the other parts PEAR addresses. Regards, Lukas

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