class Single

Represents a view of a single object or static page.

Methods

__construct(Viewable $viewModel)

Constructor

array
metadata()

Returns overriden metadata from the viewModel (if any).

string
render()

Render the template used by this page.

Details

at line 41
__construct(Viewable $viewModel)

Constructor

Parameters

Viewable $viewModel Instance of the viewModel required by this route.

at line 51
array metadata()

Returns overriden metadata from the viewModel (if any).

Return Value

array

at line 61
string render()

Render the template used by this page.

Return Value

string Template output as HTML.