public function render(array $data = [], int $status = 200)
    {
        $view = $this->di->get("view");
        $view->add($this->layout, $data, "layout");
        $body = $view->renderBuffered("layout");

        $response = $this->di->get("response");
        $response->setBody($body);
        $response->setStatusCode($status);
        return $response;
    }