Hey everyone, I have an interesting question here. My application architecture doesn't really allow me to make use of web.py templates (without a lot of redesign). I do use them for page header/footer but that's it.
I'd be super happy if I could figure out how to 'intercept' the content of a template right before it's sent to the browser. Here's an example: class foo: def GET(self): return render.foo() where foo is an html file in my templates directory. I need to do a final find/replace operation on the content **after** the web.py templator is done, right **before* *its sent off to the client. I can do this: x = render.foo() print x return x and my page still works, and what's printed *appears* to be text. However it isn't, as dir(x) shows me the object doesn't have the typical properties of a string. What type of object does 'render' return, and is there any way to manipulate the raw text contained within? Thanks! S -- You received this message because you are subscribed to the Google Groups "web.py" group. To post to this group, send email to webpy@googlegroups.com. To unsubscribe from this group, send email to webpy+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/webpy?hl=en.