mk
unread,Jan 9, 2009, 7:41:14 AM1/9/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Mako Templates for Python
Hello everyone,
I'm new Pylons user and I use Mako templates. By default it seems that
Mako is escaping HTML characters like follows in Pylons helper (${h}
variable in template):
template:
${h.link_to('FrontPage', h.url_for(action="index",
title="FrontPage"))}
Rendered HTML source:
<a href="/?title=FrontPage">FrontPage</a>
Now I *can* turn that off with:
${h.link_to('FrontPage', h.url_for(action="index", title="FrontPage"))|
n}
But is it possible to make it default? Is this my misconfiguration of
Mako or a bug somewhere?
I have Pylons 0.9.7 installed (via easy_install, with all the
dependencies), Mako appears to be 0.2.4 (mako-0.2.4-py2.5.egg), Python
2.5.2 and it seems
Regards,
mk