Re: [phplib] Template extensions & PHP in templates From: Richard Archer (rha <email protected>)
Date: 07/27/01

At 9:36 AM +0530 27/7/01, Tarique Sani <tarique <email protected>> wrote:

>IMHO having any PHP code in template defeats the basic purpose of
>templates. I use templates a lot cause more often than not the artists
>are from a different location etc etc

I totally agree. template.inc is a fairly basic template engine which
deliberately sacrifices complex functionality to achieve speed and
simplicity.

My feeling is template.inc should be kept to the minimum feature-set
required to allow the rest of the PHPLIB suite to render pages. The fact is
that most users of template.inc will be using at least one of sess, auth or
perm. In this case there will already be significant amounts of application
logic coded in PHP. In this situation the common argument that
non-PHP-using designers need to code the template logic falls down, because
the appplication is already coded in PHP.

If people aren't using the rest of PHPLIB and require complex templates,
and are afraid of PHP code, Smarty *may* be a better choice than
template.inc.

>However the extensions which people are talking about are definitely
>helpful in specific cases - so I propose an idea for having them as non
>standard add-ons submitted as patches to SF site.
>
>And who ever submits will have to place enough info on utility, usage and
>compatiblity with versions etc

I think I have volunteered to maintain and extend template.inc, so I'll
take care of maintaining these extensions and related documentation too.

 ...Richard.

-- 
Abbestellen mit Mail an:   phplib-unsubscribe <email protected>
Kommandoliste mit Mail an: phplib-help <email protected>