Re: RE: yet another template
| From: | Tomas V.V.Cox | Date: | Wed, 07 Nov 2001 23:37:48 +0000 |
| Subject: | Re: RE: yet another template | ||
| References: | 1 2 3 4 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-2631@lists.php.net to get a copy of this message | ||
"Stig S. Bakken" wrote:
>
> Jean-Michel POURE wrote:
> >
> > At 10:54 07/11/01 -0600, you wrote:
> > > > - Smarty
> > > > - IT[X]
> > > > - Template_PHPLIB
> > > > - the multibyte template engine
> > > > - Fast_Template
FastTemplate introduced the concept but is outdated nowadays. Replaced
FastTemplate with the nice Xtpl (xtpl.sf.net) ;-)
> >
> > I like the idea of Naoki that templates should be able to i) generate
> > static files and be ii) multi-byte compatible. Which template systems
> > comply with these (personal) requirements?
>
> Another "personal requirement" I have is that for example Zend Cache
> should give a performance gain for templates, basically by compiling
> templates to PHP code whose bytecode can be cached. None of the systems
> above currently fulfill this requirement completely, although Smarty is
> close.
>
> That, or a fast C implementation. :-)
>
What I want is to let the template do all the work for me. For example a
big percentage of dynamic pages coded in PHP are result sets (and also
only one result) from databases. Let's connect the Template and the DB
and also the Form Class.
Personally I don't want to "program" the template or generate php pages,
what I would ask for is a "inteligent" class that save me spent my time
coding always the same boring blocks, with the ability to generate
static html pages and a very lightweight function to output or
regenerate them.
Seeing the posts about templates here, I guess all of us uses a
different Template engine (or even has coded one :), IMHO we'll never
could build a generic API or a class that meets the wishes of all.
Tomas V.V.Cox