Re: Template class
| From: | Wolfram Kriesing | Date: | Tue, 11 Dec 2001 12:14:52 +0000 |
| Subject: | Re: Template class | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-3446@lists.php.net to get a copy of this message | ||
> The point of templates of to separate logic from layout, if your
> designers have to learn php to make tempaltes, it's useless.
well they have to learn something, either smarty-syntax, IT[X]
syntax, or all the other template syntax.
why is it that, learning those three words they need: 'foreach' may
be 'if' ... makes this template class "useless"
is there a template system where you dont have to learn how to do it?
they all have their own syntax. what if the programmer one day
changes over to some other template language? i.e. from smarty to IT,
you have to kick out all the logic which smarty supplies
and your designers have too learn ... :-(
--smarty--
{section name="foo" loop="$foo1"}
{$foo1[foo].foos_property}
{/section}
--IT[X]--
<!-- BEGIN foo -->
{foo1[foos_property]} .. however
<!-- END foo -->
{foreach($foo as $aFoo)}
{$aFoo['foos_property']}
--
Wolfram