/** * Render the layout with a given Page. * * @param Page $page * * @return string */ public function render(Page $page) { return $this->doRender($this->getRawContent(), $this->getAttributes() + ['content' => $page->getRenderedContent()]); }