|
Posted by Angelo Zanetti on 11/07/05 08:31
Torgny Bjers wrote:
> Petr Smith wrote:
>
>
>>Smarty sucks. Mixing presentation and logic is never good idea. I know
>>Smarty is very popular, but big popularity doesn't always mean quality.
>>
>>Back to original question: If you decided to reinvent the wheel,
>>please don't reinvent square wheel without tire.
>>
>>Mixing presentation and logic is bad. You should have no sqls, loops,
>>ifs or any other logic things in templates. Templates should be
>>editable by any stupid guy, anyone who knows just css/html. No sql, no
>>php, no other language.
>>
>>Back to original idea to parse table. Do not copy bad ideas from other
>>templating engines. Again - reinvent a better wheel or use some from
>>1000s of existing libraries. Download some existing libraries, think
>>about good and bad things, make it better, make it different!
>>Otherwise we will end with 1000+1 stupid, same, useless templating
>>libraries.
>
>
>
> You don't need to mix presentation and logic with Smarty. If you create
> your custom tags with Smarty and use these instead of having the inline
> "Smarty PHP" code, you'll have separated them just fine. Then if the end
> user wants to use PHP inline, fine, either let them, or don't. Either
> way, Smarty is about the fastest and most versatile engine in the PEAR
> library, as far as I know. I'd rather use that, than build something
> custom from scratch. And, in combination with Tidy and Cache_Lite,
> you'll get a very fast and precise rendering engine...
>
> Just my $0.02.
I agree with Petr!! Smarty is very good and the designer has to learn a
few smarty tags and Walla! you've got your templates working.
Navigation:
[Reply to this message]
|