Reference

$page->render()

Renders the page with the given data.

$page->render(array $data = [ ], string $contentType = 'html'): string

Parameters

Name Type Default Description
$data array [ ]
$contentType string 'html'

Return type

string

Source code

kirby/src/Cms/Page.php#L1085