Re: Re: [SMARTY] [Template - announce] Templeet 0.9.2 available
| From: | Fabien Penso | Date: | Thu, 07 Nov 2002 14:26:51 +0000 |
| Subject: | Re: Re: [SMARTY] [Template - announce] Templeet 0.9.2 available | ||
| References: | 1 2 3 | Groups: | php.general php.smarty.general |
| Request: | Send a blank email to php-general+get-123155@lists.php.net to get a copy of this message | ||
Hi 1lt !
Thu, 7 Nov 2002 09:18:00 -0500, tu as dit :
> No offense, but it looks pretty useless to me. It looks like a wrapper for
> PHP. You have to learn all of the "template" commands. Why not just learn or
> teach your designer PHP, you'd save time. The idea of a templating system is
> to have very little logic in the HTML.
It is not a wrapper. I think you should take a look at a template source
as given previously.
For example :
~list("SELECT section FROM sections",'LM',
'section name: ~fld('section')<br/>')
would print all the sections from the table. I guess it's pretty obvious
it's not a php wrapper. For commodity any function, if its php version
exists, is used. It's to keep the source code of Templeet as small as
possible, as php takes a while to parse PHP source code. So we offer all
the PHP API in 3 or 4 more lines in Templeet, that's all.
PS: sorry for Cc: both list without reply-to, but I've posted that
message from the usenet server.