Hello,

*My own* helpers (simple functions added to helpers.py) in helpers.py 
get escaped, regardless of whether I do:

from webhelpers.html.tags import *
from webhelpers.htmlgen import *

or

from webhelpers.rails.wrapped import *

in helpers.py.

Now I do know about default filters for mako templates:

http://www.makotemplates.org/docs/filtering.html#filtering_expression_defaultfilters

The mako-render script in 
C:\Python26\Lib\site-packages\mako-0.2.4-py2.6.egg\EGG-INFO\scripts 
contains following code making use of TemplateLookup:

def render(data):
     from mako.template import Template
     from mako.lookup import TemplateLookup

     lookup = TemplateLookup(["."])
     return Template(data, lookup=lookup).render()

This is the only place where render() seems to be in any file in my 
entire Python26 folder. So, this should be the place where Template() 
gets called to render() the template in Pylons controller, right? (or 
wrong?)

OTOH, 
C:\Python26\Lib\site-packages\mako-0.2.4-py2.6.egg\mako\template.py 
clearly contains default_filters=None as argument to Template.

So why should render() in my controller return with 'escaping' filter 
turned on? Bc this clearly happens to my own helper? My own ability to 
understand Pylons guts is exhausted, so please h.e.l.p.

Will the real Slim Shady please stand up to help me clear up this mess? :-)

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

Reply via email to