Re: smarty
| From: | Chris de Vidal | Date: | Wed, 14 Apr 2004 14:30:53 +0000 |
| Subject: | Re: smarty | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-183321@lists.php.net to get a copy of this message | ||
pete M said:
> what about the modifiers
<long list of modifiers snipped>
> How would you code that lot and remember its ALL to do with presentation ?
I mentioned this. Take another look at my post:
http://marc.theaimsgroup.com/?l=php-general&m=108145205519710&w=2
"[By using only PHP], At worst [I lose] some of the nice
Smarty functions such as html_options (which might be easily replaced by
phpHTMLlib or another widget library)."
So there are alternatives to what Smarty offers, but I also said "I just
see them [template engines] as another tool." It's a tool; use it where
it saves time, but it's not as if native PHP lacks most (if not all) of
what Smarty offers, which is what I originally thought because I'd learned
PHP by spaghetti coding.
I would never say that Smarty is completely redundant. Use it where it
makes sense. But now that my eyes have been opened I believe it's
_mostly_ redundant. I believe it was written because so many people
aren't aware that native PHP is a *very* effective template engine.
/dev/idal
P.S. Have a look at the article I linked in my post:
http://www.phppatterns.com/index.php/article/articleview/4/1/1/
While I don't totally agree with everything he says (he says ALL
templating engines are bad), it was an eye-opener for me.