It appears the render() function creates its own "response" object in the
"context" passed to it, so when globals() is passed as the context, it
overwrites the response object in the view environment. I think it works,
however, if you move the code to the controller and pass the result to the
view:
def blog_entry():
import os
from gluon.template import render
blog = XML(render(blog.body, path=os.path.join(request.folder,
'views'),context
=globals()))
return dict(blog=blog)
And in the view:
{{=blog}}
Anthony
On Thursday, June 28, 2012 12:38:20 PM UTC-4, RKS wrote:
>
> That's fine. I'm sorry for such a dumb mistake. Don't know why I did that.
> Here it is.
>