Skip to content

Kirby 5.0.4

$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

This method modifies the existing $snippet object it is applied to and returns it again.

Parent class

Kirby\Template\Snippet