interface Macro

Latte macro.

Constants

AUTO_EMPTY

AUTO_CLOSE

ALLOWED_IN_HEAD

DEFAULT_FLAGS

Methods

void
initialize()

Initializes before template parsing.

array|null
finalize()

Finishes template parsing.

bool|null
nodeOpened(MacroNode $node)

New node is found. Returns false to reject.

void
nodeClosed(MacroNode $node)

Node is closed.

Details

at line 28
void initialize()

Initializes before template parsing.

Return Value

void

at line 34
array|null finalize()

Finishes template parsing.

Return Value

array|null

[prolog, epilog]

at line 40
bool|null nodeOpened(MacroNode $node)

New node is found. Returns false to reject.

Parameters

MacroNode $node

Return Value

bool|null

at line 46
void nodeClosed(MacroNode $node)

Node is closed.

Parameters

MacroNode $node

Return Value

void