Wrapper Utility API

glashammer.utils.wrappers

copyright:2007-2009-2008 by Armin Ronacher, Ali Afshar
license:MIT
class glashammer.utils.wrappers.Request(app, environ)
The used request class.
glashammer.utils.wrappers.render_response(template_name, mimetype='text/html', **context)

Render a template and return a response instance.

template_name The name of the template to use, this can include a relative path to the template from the searchpath directory.

mimetype The mimetype for the response.

context Key worded context variables for the template. These variables are passed into the template namespace.