"Hardik Doshi" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > 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/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php