On Apr 15, 2008, at 9:22 AM, Garland, Ken R wrote:
So that replaces the HTML escaping done previously in Mako: http://www.makotemplates.org/docs/syntax.html#syntax_expression_expression
Not entirely, its using a slightly different escaping mechanism. If the variable has a __html__() method, the object is assumed to be capable of escaping itself, and the method will be called and used for the value. This is why you can wrap a variable in a literal() object to ensure it doesn't get further escaped in the template.
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?
All of Mako's switches are here: http://www.makotemplates.org/docs/filtering.html#filtering_expression Cheers, Ben
smime.p7s
Description: S/MIME cryptographic signature
