Ben Bangert wrote:
>> But output of my own helper is still being escaped.
>
> Can you include the helper you're referring to? Your helper might be
> using a function/class which causes it to escape content.
It's really basic:
def format_env(env):
items = env.items()
items.sort()
vl = [ "%s: %r" % (el[0], el[1]) for el in items ]
return "<br>\n".join(vl)
I use it in a template like this:
${h.format_env(request.environ)}
Regards,
mk
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---