CoreMacros
class CoreMacros extends MacroSet
Basic macros for Latte.
Methods
Initializes before template parsing.
Finishes template parsing.
{breakIf ...} {continueIf ...} {skipIf ...}
Details
at line 36
static void
install(Compiler $compiler)
No description
at line 100
void
initialize()
Initializes before template parsing.
at line 110
finalize()
Finishes template parsing.
at line 135
string
macroIf(MacroNode $node, PhpWriter $writer)
{if ...}
at line 158
string
macroEndIf(MacroNode $node, PhpWriter $writer)
{/if ...}
at line 181
string
macroElse(MacroNode $node, PhpWriter $writer)
{else}
at line 218
string
macroElseIf(MacroNode $node, PhpWriter $writer)
{elseif} {elseifset}
at line 234
void
macroIfContent(MacroNode $node, PhpWriter $writer)
n:ifcontent
at line 246
void
macroEndIfContent(MacroNode $node, PhpWriter $writer)
n:ifcontent
at line 259
void
macroIfChanged(MacroNode $node, PhpWriter $writer)
{ifchanged [...]}
at line 280
void
macroTry(MacroNode $node, PhpWriter $writer)
{try}
at line 299
string
macroRollback(MacroNode $node, PhpWriter $writer)
{rollback}
at line 314
string
macroTranslate(MacroNode $node, PhpWriter $writer)
{_$var |modifiers}
at line 341
string
macroInclude(MacroNode $node, PhpWriter $writer)
{include [file] "file" [with blocks] [,] [params]}
at line 370
string
macroSandbox(MacroNode $node, PhpWriter $writer)
{sandbox "file" [,] [params]}
at line 389
string
macroCapture(MacroNode $node, PhpWriter $writer)
{capture $variable}
at line 406
string
macroCaptureEnd(MacroNode $node, PhpWriter $writer)
{/capture}
at line 423
void
macroSpaceless(MacroNode $node, PhpWriter $writer)
{spaceless} ... {/spaceless}
at line 436
string
macroWhile(MacroNode $node, PhpWriter $writer)
{while ...}
at line 449
string
macroEndWhile(MacroNode $node, PhpWriter $writer)
{/while ...}
at line 462
void
macroEndForeach(MacroNode $node, PhpWriter $writer)
{foreach ...}
at line 495
void
macroIterateWhile(MacroNode $node, PhpWriter $writer)
{iterateWhile ...}
at line 507
void
macroEndIterateWhile(MacroNode $node, PhpWriter $writer)
{/iterateWhile ...}
at line 534
string
macroBreakContinueIf(MacroNode $node, PhpWriter $writer)
{breakIf ...} {continueIf ...} {skipIf ...}
at line 558
string
macroClass(MacroNode $node, PhpWriter $writer)
n:class="..."
at line 571
string
macroAttr(MacroNode $node, PhpWriter $writer)
n:attr="..."
at line 581
void
macroTag(MacroNode $node, PhpWriter $writer)
n:tag="..."
at line 596
void
macroTagEnd(MacroNode $node, PhpWriter $writer)
n:tag="..."
at line 622
string
macroDump(MacroNode $node, PhpWriter $writer)
{dump ...}
at line 636
string
macroDebugbreak(MacroNode $node, PhpWriter $writer)
{debugbreak ...}
at line 649
string
macroCase(MacroNode $node, PhpWriter $writer)
{case ...}
at line 664
string
macroVar(MacroNode $node, PhpWriter $writer)
{var ...} {default ...} {default} in {switch}
at line 748
string
macroExpr(MacroNode $node, PhpWriter $writer)
{= ...} {php ...} {do ...}
at line 762
string
macroContentType(MacroNode $node, PhpWriter $writer)
{contentType ...}
at line 802
void
macroParameters(MacroNode $node, PhpWriter $writer)
{parameters type $var, ...}
at line 841
void
macroVarType(MacroNode $node)
{varType type $var}
at line 860
string
macroVarPrint(MacroNode $node)
{varPrint [all]}
at line 872
void
macroTemplateType(MacroNode $node)
{templateType ClassName}
at line 884
void
macroTemplatePrint(MacroNode $node)
{templatePrint [ClassName]}