Skip to content

Kirby 6.0.0

$snippet->render()

Renders the snippet and passes the scope with all slots and data

$snippet->render(array $data = [], array $slots = []): string

Parameters

Name Type Default Description
$data array []
$slots array<string, string|null> [] Additional slot contents by name

Return type

string

Parent class

Kirby\Template\Snippet