[prev in list] [next in list] [prev in thread] [next in thread] 

List:       smarty-dev
Subject:    [SMARTY-DEV] Re: XML+XSLT or Smarty again??
From:       194.152.205.34
Date:       2003-03-29 15:02:34
[Download RAW message or body]

"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/




-- 
Smarty Development Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic