class Snippet (View source)

The snippet block.

Properties

static private $snippetIsRendering This variable tracks whether a snippet is called by another snippet to prevent inifinte recursive loops.

Methods

static string
render(object $data, Automad $Automad)

Render a snippet block.

Details

static string render(object $data, Automad $Automad)

Render a snippet block.

Parameters

object $data
Automad $Automad

Return Value

string the rendered HTML