On Sat, 2011-12-17 at 16:26 -0800, jerry wrote:
> I tried to write full-up programs in XML/XSLT at work and fully agree
> with you that XML is by design not suitable for such task.
> 
> However, templates are not, and should not be, full-up programs. The
> awkward XML programing can actually remind the author to limit the
> logic in the template.

For what it's worth, I've been using ZPT (the syntax that Chameleon
implements) for about 9 years.  It's no worse and no better than
anything else; the very act of templating itself blows hard enough that
fighting over what's better is like fighting over the grade of bleach
one should be drinking.  None of the problems that I have with
templating HTML could be solved with writing the template in a non-XML
syntax.

> Besides, when both the number and complexity of your templates grow,
> it'll be appreciated more and more that your final HTML will be well-
> formed (and free from XSS attack) so long as each individual template
> is validated. This is kind of like unit testing to me.
> 
> Last but not the least, XML templates are more designer friendly than
> their non-XML counterparts.
> 
> That's why I'm still with Genshi while waiting for Chameleon to be
> ready for prime time.

You're either going to be waiting a long time, or you should stop
waiting.  It's about as good as it's going to get. ;-)

- C


-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en.

Reply via email to