Or using Pylons webhelpers function in template like this $
{Markup(c.xml)}
On Apr 16, 9:51 am, Alagu Madhu <[EMAIL PROTECTED]> wrote:
> Thank you very much everybody.
>
> ${c.xml | n}
>
> and
>
> from webhelpers.html import literal
>
> def xml(self):
> c.xml = literal(....)
>
> working fine.
>
> On Apr 15, 9:15 pm, "Mike Orr" <[EMAIL PROTECTED]> wrote:
>
> > On Tue, Apr 15, 2008 at 9:22 AM, Garland, Ken R <[EMAIL PROTECTED]> wrote:
>
> > > So that replaces the HTML escaping done previously in Mako:
>
> > > http://www.makotemplates.org/docs/syntax.html#syntax_expression_expre...
>
> > > I must have missed the 'n' switch after looking over this doc:
> > > http://wiki.pylonshq.com/pages/viewpage.action?pageId=11174779
>
> > The 'n' switch was undocumented in Mako for a long time, so a lot of
> > people don't know about it. I've added an explanation to the article.
>
> > By the way, last night I also updated the webhelpers section, added a
> > section on controller imports, documented writing your own render
> > function. I also finished WebHelper's docstrings, so it's ready to
> > release as soon as Ben finishes his busy work week. (Although I'm
> > still waiting for the minimize library somebody was going to
> > contribute.)
>
> > --
> > 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
-~----------~----~----~----~------~----~------~--~---