CoreMacros
class CoreMacros extends MacroSet
Basic macros for Latte.
Methods
void
initialize()
Initializes before template parsing.
finalize()
Finishes template parsing.
string
void
void
string
string
macroInclude(MacroNode $node, PhpWriter $writer)
{include "file" [,] [params]} {sandbox "file" [,] [params]}
string
string
void
string
string
void
string
string
string
string
void
string
void
void
Details
at line 33
static void
install(Compiler $compiler)
No description
at line 88
void
initialize()
Initializes before template parsing.
at line 97
finalize()
Finishes template parsing.
at line 122
string
macroIf(MacroNode $node, PhpWriter $writer)
{if ...}
at line 140
string
macroEndIf(MacroNode $node, PhpWriter $writer)
{/if ...}
at line 160
string
macroElse(MacroNode $node, PhpWriter $writer)
{else}
at line 185
void
macroIfContent(MacroNode $node, PhpWriter $writer)
n:ifcontent
at line 196
void
macroEndIfContent(MacroNode $node, PhpWriter $writer)
n:ifcontent
at line 207
string
macroTranslate(MacroNode $node, PhpWriter $writer)
{_$var |modifiers}
at line 235
string
macroInclude(MacroNode $node, PhpWriter $writer)
{include "file" [,] [params]} {sandbox "file" [,] [params]}
at line 266
string
macroCapture(MacroNode $node, PhpWriter $writer)
{capture $variable}
at line 283
string
macroCaptureEnd(MacroNode $node, PhpWriter $writer)
{/capture}
at line 300
void
macroSpaceless(MacroNode $node)
{spaceless} ... {/spaceless}
at line 315
string
macroWhile(MacroNode $node, PhpWriter $writer)
{while ...}
at line 330
string
macroEndWhile(MacroNode $node, PhpWriter $writer)
{/while ...}
at line 345
void
macroEndForeach(MacroNode $node, PhpWriter $writer)
{foreach ...}
at line 378
string
macroBreakContinueIf(MacroNode $node, PhpWriter $writer)
{breakIf ...} {continueIf ...}
at line 394
string
macroClass(MacroNode $node, PhpWriter $writer)
n:class="..."
at line 406
string
macroAttr(MacroNode $node, PhpWriter $writer)
n:attr="..."
at line 415
string
macroDump(MacroNode $node, PhpWriter $writer)
{dump ...}
at line 431
string
macroDebugbreak(MacroNode $node, PhpWriter $writer)
{debugbreak ...}
at line 447
string
macroVar(MacroNode $node, PhpWriter $writer)
{var ...} {default ...}
at line 525
string
macroExpr(MacroNode $node, PhpWriter $writer)
{= ...} {php ...} {do ...}
at line 541
string
macroContentType(MacroNode $node, PhpWriter $writer)
{contentType ...}
at line 582
void
macroVarType(MacroNode $node)
{varType type $var}
at line 599
string
macroVarPrint(MacroNode $node)
{varPrint [all]}
at line 611
void
macroTemplateType(MacroNode $node)
{templateType ClassName}
at line 626
void
macroTemplatePrint(MacroNode $node)
{templatePrint [ClassName]}