In my Pylons application the browser is requesting html snippets via
JSON. These requests are send to a mako template with code like
@jsonify
def view(self):
return dict(snippet=render('template'))
In my development environment (paste#http server) the snippet is not
html encoded when the browser gets the answer (checked with
Firebug). On my deployment server (apache + mod_wsg)i the snippet is
html encoded. So appenrently the middleware +apcahe+mod_wsgi behaves
differntly than the middleware + past#http. Does anybody understand
why?
I could modifying the code to
return dict(snippet = str(render('template')))
but I'd like to turn off the html encoding in mako templating
rendering for the html snippets., because the snippet is anyhow json
encoded .How could i do that?.
--
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.