Re: Objective opinion
| From: | Aapo Laakkonen | Date: | Wed, 20 Mar 2002 17:28:04 +0000 |
| Subject: | Re: Objective opinion | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-3128@lists.php.net to get a copy of this message | ||
> I believe the XML notation used by Modelixe has advantages.
XML notation is not very nice if you ask me because html tags are mixed
with xml tags and it's difficult to read and find that where it starts a
loop (or something) and where it is just html.
> The best implementation I have come across is the one in Zope.
The best templating engines I have dealt with are:
CheetahTemplate (python)
http://www.cheetahtemplate.org/
and
Velocity (java)
http://jakarta.apache.org/velocity/index.html
> Smarty is by far the best template engine I've come across for the
programmer - it helps us get our job done much quicker, but for the
designer maybe improvements could be made.
I think that smarty project should focus on developers or designers, but
not both. Everytime you like to do everything for everyone the result is
that you have not done anything for anyone.
> I think the future is XML, as when WYSIWYG editors start to
> understand custom XML tags the designers will be able to visually
> design the pages complete with Smarty tags.
XSLT is one faw for templating, but is it the way to go? I think it is
sometimes, but it is not a silver bullet for anything.
CheetahTemplate example:
<TABLE>
#for $client in $clients
<TR>
<TD>$client.surname, $client.firstname</TD>
<TD><A HREF="mailto:$client.email">$client.email</A></TD>
</TR>
#end for
</TABLE>
I think that this is very clear. And I cannot see any reason why
designer needs templating engine. I think photoshop and some
illustrating software is everything they need.