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 101
void
initialize()
Initializes before template parsing.
at line 111
finalize()
Finishes template parsing.
at line 137
string
macroIf(MacroNode $node, PhpWriter $writer)
{if ...}
at line 162
string
macroEndIf(MacroNode $node, PhpWriter $writer)
{/if ...}
at line 194
string
macroElse(MacroNode $node, PhpWriter $writer)
{else}
at line 233
string
macroElseIf(MacroNode $node, PhpWriter $writer)
{elseif} {elseifset}
at line 249
void
macroIfContent(MacroNode $node, PhpWriter $writer)
n:ifcontent
at line 265
void
macroEndIfContent(MacroNode $node, PhpWriter $writer)
n:ifcontent
at line 279
void
macroIfChanged(MacroNode $node, PhpWriter $writer)
{ifchanged [...]}
at line 300
void
macroTry(MacroNode $node, PhpWriter $writer)
{try}
at line 326
string
macroRollback(MacroNode $node, PhpWriter $writer)
{rollback}
at line 343
string
macroTranslate(MacroNode $node, PhpWriter $writer)
{_$var |modifiers} {translate|modifiers}
at line 381
string
macroInclude(MacroNode $node, PhpWriter $writer)
{include [file] "file" [with blocks] [,] [params]}
at line 411
string
macroSandbox(MacroNode $node, PhpWriter $writer)
{sandbox "file" [,] [params]}
at line 430
string
macroCapture(MacroNode $node, PhpWriter $writer)
{capture $variable}
at line 448
string
macroCaptureEnd(MacroNode $node, PhpWriter $writer)
{/capture}
at line 468
void
macroSpaceless(MacroNode $node, PhpWriter $writer)
{spaceless} ... {/spaceless}
at line 481
string
macroWhile(MacroNode $node, PhpWriter $writer)
{while ...}
at line 495
string
macroEndWhile(MacroNode $node, PhpWriter $writer)
{/while ...}
at line 509
void
macroEndForeach(MacroNode $node, PhpWriter $writer)
{foreach ...}
at line 544
void
macroIterateWhile(MacroNode $node, PhpWriter $writer)
{iterateWhile ...}
at line 557
void
macroEndIterateWhile(MacroNode $node, PhpWriter $writer)
{/iterateWhile ...}
at line 584
string
macroBreakContinueIf(MacroNode $node, PhpWriter $writer)
{breakIf ...} {continueIf ...} {skipIf ...}
at line 611
string
macroClass(MacroNode $node, PhpWriter $writer)
n:class="..."
at line 625
string
macroAttr(MacroNode $node, PhpWriter $writer)
n:attr="..."
at line 635
void
macroTag(MacroNode $node, PhpWriter $writer)
n:tag="..."
at line 651
void
macroTagEnd(MacroNode $node, PhpWriter $writer)
n:tag="..."
at line 677
string
macroDump(MacroNode $node, PhpWriter $writer)
{dump ...}
at line 691
string
macroDebugbreak(MacroNode $node, PhpWriter $writer)
{debugbreak ...}
at line 705
string
macroCase(MacroNode $node, PhpWriter $writer)
{case ...}
at line 721
string
macroVar(MacroNode $node, PhpWriter $writer)
{var ...} {default ...} {default} in {switch}
at line 817
string
macroExpr(MacroNode $node, PhpWriter $writer)
{= ...} {php ...} {do ...}
at line 843
string
macroContentType(MacroNode $node, PhpWriter $writer)
{contentType ...}
at line 886
void
macroParameters(MacroNode $node, PhpWriter $writer)
{parameters type $var, ...}
at line 930
void
macroVarType(MacroNode $node)
{varType type $var}
at line 950
string
macroVarPrint(MacroNode $node)
{varPrint [all]}
at line 962
void
macroTemplateType(MacroNode $node)
{templateType ClassName}
at line 975
void
macroTemplatePrint(MacroNode $node)
{templatePrint [ClassName]}