Re: Re: renderers and refactoring

From: Date: Thu, 24 Jul 2003 09:55:28 +0000
Subject: Re: Re: renderers and refactoring
References: 1 2 3 4 5 6 7 8 9 10 11 12  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-18623@lists.php.net to get a copy of this message
It would be nice to have a commom Template API for sure. Arnaud. > Just a thought but wouldn't it make sense to create something like > HTML_Template_Model while your refactoring and then move to all > templates in PEAR to use this same model for loading the variables into, > so that templates can at least have alarge portion of shared api. > -joshua eichorn > > Sam Liddicott wrote: > > > Alan Knowles wrote: > > > >> Flexy: > >> HTML_Template_Flexy_Compiler_Full <-- the current compiler engine (a > >> mix of whats in Tokens and Flexy compiler() calls. > >> HTML_Template_Flexy_Compiler_Class <-- sams Code to generate classes > >> - as an extension of Compiler_Full > > > > > > The structure and the factories all seem fine, I would also want a > > simple interface suhch as this: > > > > class_from_html($htmlfile); > > $page=new $mypage(); > > $page->output(); > > > > class_from_html would wrap the caching, the factory calls, etc, and > > just cause the class to be declared. > > Like a more clever kind of reqiure_once() > > > > Is this acceptable? > > > > Sam > > > > > > > > > > > > -- > PEAR Development Mailing List (http://pear.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

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