class View (View source)

The View class is responsible for rendering the requeste page.

Properties

private $Automad The main Automad instance.
private $headless A boolean variable that contains the headless state

Methods

__construct(Automad $Automad, bool $headless = false)

The view constructor.

string
render()

Render a page.

Details

__construct(Automad $Automad, bool $headless = false)

The view constructor.

Parameters

Automad $Automad
bool $headless

string render()

Render a page.

Return Value

string the rendered page