final class Passes

Built-in compiler passes.

Methods

__construct(Engine $engine)

No description

void
customFunctionsPass(TemplateNode $node)

Replaces calls to registered functions with CustomFunctionCallNode wrappers.

void
forbiddenVariablesPass(TemplateNode $node)

Forbids use of internal Latte variables ($ʟ_xxx), $GLOBALS, and $this in templates.

void
scriptTagQuotesPass(TemplateNode $node)

Detects print statements immediately followed by quotes inside