Re: XML+XSLT or Smarty again??

From: Date: Sat, 29 Mar 2003 15:02:34 +0000
Subject: Re: XML+XSLT or Smarty again??
References: 1  Groups: php.general php.smarty.dev php.smarty.general 
Request: Send a blank email to php-general+get-141582@lists.php.net to get a copy of this message
"Hardik Doshi" <php_hardik@yahoo.com> wrote in message news:20030329012012.61768.qmail@web14705.mail.yahoo.com... > During reading of XML+XSLT and Smarty, i have > following two questions. > Actually i dont know much about Advantages of XML+XSLT > in web based application. What i know is Smarty's > advantages. So if you have any idea then please let me > know. I am more and more concern for perfect selection > of template engine. Hello, From my point of view, both XML+XSLT and smarty have "dirty" templates, in sense, that their templates contain both html, and controling code. While some people consider this nice, I prefer templates that do not contain logic and controling code, so this is the way TemplateTamer works. With TT templates contain only markers fot templates and variables, and programmer is responsible for returning and array containing information about templates to be displayed and values of variables, and TT framework does the rest. This does have some resemblance to XML+XSLT approach but with following differences: a) there are no contol structures (or code) inside of templates b) data tree is easier and much less costly to asssemble since it is implemented with simple arrays c) all other glueing is done by TT framework. In addition to that, TemplateTamer offers: * IDE, that can keep track of the project, * tool to visualize template structures (which commes handy in more comlicated and nested structures) * example code generator. rush -- http://www.templatetamer.com/

« previous php.general (#141582) next »