public function renderWithData($path, $data = [])
    {
        foreach ($data as $key => $value) {
            $this->add($key, $value);
        }

        $this->render($path);

        return $this;
    }