class CoreMacros extends MacroSet

Basic macros for Latte.

Methods

static void
install(Compiler $compiler)

No description

void
initialize()

Initializes before template parsing.

array|null
finalize()

Finishes template parsing.

macroIf(MacroNode $node, PhpWriter $writer)

{if ...}

macroEndIf(MacroNode $node, PhpWriter $writer)

{/if ...}

macroElse(MacroNode $node, PhpWriter $writer)

{else}

macroIfContent(MacroNode $node, PhpWriter $writer)

n:ifcontent

macroEndIfContent(MacroNode $node, PhpWriter $writer)

n:ifcontent

macroTranslate(MacroNode $node, PhpWriter $writer)

{_$var |modifiers}

macroInclude(MacroNode $node, PhpWriter $writer)

{include "file" [,] [params]}

macroCapture(MacroNode $node, PhpWriter $writer)

{capture $variable}

macroCaptureEnd(MacroNode $node, PhpWriter $writer)

{/capture}

macroSpaceless(MacroNode $node, PhpWriter $writer)

{spaceless} ... {/spaceless}

macroWhile(MacroNode $node, PhpWriter $writer)

{while ...}

macroEndWhile(MacroNode $node, PhpWriter $writer)

{/while ...}

macroEndForeach(MacroNode $node, PhpWriter $writer)

{foreach ...}

macroBreakContinueIf(MacroNode $node, PhpWriter $writer)

{breakIf ...} {continueIf ...}

macroClass(MacroNode $node, PhpWriter $writer)

n:class="..."

macroAttr(MacroNode $node, PhpWriter $writer)

n:attr="..."

macroDump(MacroNode $node, PhpWriter $writer)

{dump ...}

macroDebugbreak(MacroNode $node, PhpWriter $writer)

{debugbreak ...}

macroVar(MacroNode $node, PhpWriter $writer)

{var ...} {default ...}

macroExpr(MacroNode $node, PhpWriter $writer)

{= ...} {php ...}

macroContentType(MacroNode $node, PhpWriter $writer)

{contentType ...}

Details

at line 29
static void install(Compiler $compiler)

No description

Parameters

Compiler $compiler

Return Value

void

at line 77
void initialize()

Initializes before template parsing.

Return Value

void

at line 87
array|null finalize()

Finishes template parsing.

Return Value

array|null

[prolog, epilog]

at line 108
macroIf(MacroNode $node, PhpWriter $writer)

{if ...}

Parameters

MacroNode $node
PhpWriter $writer

at line 126
macroEndIf(MacroNode $node, PhpWriter $writer)

{/if ...}

Parameters

MacroNode $node
PhpWriter $writer

at line 146
macroElse(MacroNode $node, PhpWriter $writer)

{else}

Parameters

MacroNode $node
PhpWriter $writer

at line 171
macroIfContent(MacroNode $node, PhpWriter $writer)

n:ifcontent

Parameters

MacroNode $node
PhpWriter $writer

at line 182
macroEndIfContent(MacroNode $node, PhpWriter $writer)

n:ifcontent

Parameters

MacroNode $node
PhpWriter $writer

at line 193
macroTranslate(MacroNode $node, PhpWriter $writer)

{_$var |modifiers}

Parameters

MacroNode $node
PhpWriter $writer

at line 215
macroInclude(MacroNode $node, PhpWriter $writer)

{include "file" [,] [params]}

Parameters

MacroNode $node
PhpWriter $writer

at line 238
macroCapture(MacroNode $node, PhpWriter $writer)

{capture $variable}

Parameters

MacroNode $node
PhpWriter $writer

at line 255
macroCaptureEnd(MacroNode $node, PhpWriter $writer)

{/capture}

Parameters

MacroNode $node
PhpWriter $writer

at line 267
macroSpaceless(MacroNode $node, PhpWriter $writer)

{spaceless} ... {/spaceless}

Parameters

MacroNode $node
PhpWriter $writer

at line 282
macroWhile(MacroNode $node, PhpWriter $writer)

{while ...}

Parameters

MacroNode $node
PhpWriter $writer

at line 297
macroEndWhile(MacroNode $node, PhpWriter $writer)

{/while ...}

Parameters

MacroNode $node
PhpWriter $writer

at line 312
macroEndForeach(MacroNode $node, PhpWriter $writer)

{foreach ...}

Parameters

MacroNode $node
PhpWriter $writer

at line 345
macroBreakContinueIf(MacroNode $node, PhpWriter $writer)

{breakIf ...} {continueIf ...}

Parameters

MacroNode $node
PhpWriter $writer

at line 361
macroClass(MacroNode $node, PhpWriter $writer)

n:class="..."

Parameters

MacroNode $node
PhpWriter $writer

at line 373
macroAttr(MacroNode $node, PhpWriter $writer)

n:attr="..."

Parameters

MacroNode $node
PhpWriter $writer

at line 382
macroDump(MacroNode $node, PhpWriter $writer)

{dump ...}

Parameters

MacroNode $node
PhpWriter $writer

at line 398
macroDebugbreak(MacroNode $node, PhpWriter $writer)

{debugbreak ...}

Parameters

MacroNode $node
PhpWriter $writer

at line 413
macroVar(MacroNode $node, PhpWriter $writer)

{var ...} {default ...}

Parameters

MacroNode $node
PhpWriter $writer

at line 466
macroExpr(MacroNode $node, PhpWriter $writer)

{= ...} {php ...}

Parameters

MacroNode $node
PhpWriter $writer

at line 479
macroContentType(MacroNode $node, PhpWriter $writer)

{contentType ...}

Parameters

MacroNode $node
PhpWriter $writer