def render_then_call(str, &blk)
      Proc.new do |response|
        response.write(str)
        blk.call
      end
    end
def render_then_call(str, &blk)
      Proc.new do |response|
        response.write(str)
        blk.call
      end
    end
Renders the passed in string, then calls the block outside the mutex and
 after the string has been returned to the client.

 ==== Parameters
 str<String>:: A +String+ to return to the client.
 &blk:: A block that should get called once the string has been returned.

 ==== Returns
 Proc::
   A block that Mongrel can call after returning the string to the user.

 :api: public