shareViewData()#
Share data for the page being rendered.
Hyde::shareViewData(Hyde\Pages\Concerns\HydePage $page): void
renderPage()#
Render the given page, within the language context it is compiled for.
Everything involved in rendering the page happens within that context, not just the compilation itself, so that view data, metadata, navigation menus, view composers, and extension hooks all resolve their translation strings for the same language.
Hyde::renderPage(Hyde\Pages\Concerns\HydePage $page): string
currentRouteKey()#
Get the route key for the page being rendered.
Hyde::currentRouteKey(): ?string
currentRoute()#
Get the route for the page being rendered.
Hyde::currentRoute(): ?Hyde\Support\Models\Route
currentPage()#
Get the page being rendered.
Hyde::currentPage(): ?Hyde\Pages\Concerns\HydePage