On 8/22/07, Mike Lewis <[EMAIL PROTECTED]> wrote:
> I'm starting a new project that will hopefully be used by a lot of
> users eventually, so performance is necessary.  Is there any reason
> why I would want to use Genshi over Mako?  Mako looks like it's a lot
> faster, and less restrictive than requiring strict XML markup.  Would
> there be a reason why I would want XML forced on me?

You'd want XML forced on you so that you don't generate broken XML, or
embed someone else's untrusted XML into your XML.  An XML-based
templating language understands the context of where a variable is
being used, and thus knows how to escape that variable on output.

Mako does offer the ability to automatically escape unspecified
variables, though, so you might want to look at that to avoid all the
potential pitfalls untrusted input slipping through.

Neil
-- 
Neil Blakey-Milner
http://nxsy.org/
[EMAIL PROTECTED]

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" 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/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to