interface IMacro

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 26
void initialize()

Initializes before template parsing.

Return Value

void

at line 32
array|null finalize()

Finishes template parsing.

Return Value

array|null

[prolog, epilog]

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

New node is found. Returns false to reject.

Parameters

MacroNode $node

Return Value

bool|null

at line 44
void nodeClosed(MacroNode $node)

Node is closed.

Parameters

MacroNode $node

Return Value

void