Skip to content

Kirby 4.5.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
$data array [ ]
$slots array [ ]

Return type

string

Parent class

Kirby\Template\Snippet