Re: [SMARTY-DEV] Var Templates
| From: | Tom Sommer | Date: | Wed, 16 Apr 2003 02:07:01 +0000 |
| Subject: | Re: [SMARTY-DEV] Var Templates | ||
| References: | 1 2 3 | Groups: | php.smarty.dev |
| Request: | Send a blank email to php-smarty-dev+get-1180@lists.php.net to get a copy of this message | ||
On Wed, 16 Apr 2003 03:59:49 +0200, Wom.Bat wrote:
> I think you two didn't get the purpose of a template engine like Smarty.
> Smarty's purpose is to seperate APPLICATION(!) from PRESENTATION(!) _LOGIC_
> (!).
> That means that you prepare RAW content in PHP, and everything else is done
> by Smarty.
Personally I like to set my limit at using {foreach}, a perfect template
should really only use {section} and {$var}... I don't use {assign}, {if}
or {include} in my templates either, because I might as well do that in PHP
and keep the template SO MUCH cleaner and easier to understand for
non-coders.
--
Tom Sommer, Denmark
www.tsn.dk - www.dreamcoder.dk