greater flexibility does make it easier to make mistakes. doesn't mean
that forcing you to use xml necessarily better.

as a rule if you need to output anything but html i would use make. if
you won't then use genshi. genshi is plenty fast.

it would be nice if non-xml templating systems had an xml mode.

-brandon

On Aug 23, 10:07 am, "Neil Blakey-Milner" <[EMAIL PROTECTED]> wrote:
> 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-Milnerhttp://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