You can turn that result dict into the rendered content using
pyramid.renderers.render:
return Response(htmlfill.render( render('/template.mako', self.view(),
request=self.request) ) )
self.view is an @action method
The only problem with render() is that you have to specify the template
name twice; once in the @action call and once in the render call. You also
have to remember to pass the request to render().
--
You received this message because you are subscribed to the Google Groups
"pylons-discuss" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/pylons-discuss/-/iYXIUniQpBoJ.
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.