Re: Re: renderers and refactoring

From: Date: Wed, 23 Jul 2003 22:26:30 +0000
Subject: Re: Re: renderers and refactoring
References: 1 2 3 4 5 6 7 8 9 10 11  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-18605@lists.php.net to get a copy of this message
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


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