public function renderTemplate(Request $request, Response $response, $template, $status = null)
    {
        $response->getBody()->write($this->fetchTemplate($request, $template));

        if ($status) {
            $response = $response->withStatus($status);
        }

        return $response;
    }