So that replaces the HTML escaping done previously in Mako:

http://www.makotemplates.org/docs/syntax.html#syntax_expression_expression

I must have missed the 'n' switch after looking over this doc:
http://wiki.pylonshq.com/pages/viewpage.action?pageId=11174779

Are there other new switches like this to be aware of?


On Tue, Apr 15, 2008 at 12:13 PM, Ben Bangert <[EMAIL PROTECTED]> wrote:
> On Apr 15, 2008, at 6:29 AM, Alagu Madhu wrote:
>
>
> > <?xml version="1.0" encoding="utf-8" ?>
> > <customer id="customer">
> > ${c.xml}
> > </customer>
> >
>
>  Pylons 0.9.7 has HTML auto-escaping of variables. If you do not want a
> variable escaped, you can turn off the filter like so:
>  ${c.xml | n}
>
>  Or, you can wrap your variable in a literal() object in the controller like
> so:
>
>  from webhelpers.html import literal
>
>  def xml(self):
>     c.xml = literal(....)
>
>
>  Cheers,
>  Ben

--~--~---------~--~----~------------~-------~--~----~
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