extract render() out of Handler.get() so it can be used from outside an HTTP
handler.