2008/2/6 Paweł Stradomski <[EMAIL PROTECTED]>: > W liście Mike Orr z dnia środa 06 lutego 2008: > > - Having to wrap values in genshi.XML() in disparate parts of the > > app to prevent them from being escaped later, which ties the > > controller/library code too closely to a particular template engine. > > What exactly prevents you from wrapping them with Markup() in the template > itself?
Well, it defeats the purpose of Markup by making the decision at the point of display rather than the point of origin, which knows more about what the data is and whether it's been preformatted. But this also gets into the issue that Python needs a built-in way to mark a preformatted string so that each template language doesn't have to have its own incompatible way. -- Mike Orr <[EMAIL PROTECTED]> --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
