[PEPr] Comment on HTML::Template_Savant
| From: | PEPr | Date: | Wed, 02 Jun 2004 05:08:43 +0000 |
| Subject: | [PEPr] Comment on HTML::Template_Savant | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-29851@lists.php.net to get a copy of this message | ||
Alan Knowles (http://pear.php.net/user/alan_k) has commented on the proposal for
HTML::Template_Savant.
Comment:
OK. - the core integration work is done on Flexy
$flexy = new HTML_Template_Flexy(
'templateDir' => '/location/of/templates/',
'compiler' => 'raw',
...
);
$flexy->compile('savant_template.php');
$flexy->assign('xxx','yyyy');
$flexy->output();
It still needs some work:
- plugins - I've not added any, as the licences are different.. so it needs approval to work
together on this.
- plugins - There is some nasty code in the Savant loader that works around bugs in constructors
(which should not be there, as far as I can see, its a design problem in plugins, that they shouldnt
use php constructors..)
- assign - I've not added assignObject as It's not clear how it works.
- filters - dont seem to add much value at present, and could really be extracted from the codebase,
and added as a seperate package (letting the user filter the buffered Output)
Proposal information:
http://pear.php.net/pepr/pepr-proposal-show.php?id=83
--
Sent by PEPr, the automatic proposal system at http://pear.php.net