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 97
void
initialize()
Initializes before template parsing.
at line 107
finalize()
Finishes template parsing.
at line 133
string
macroIf(MacroNode $node, PhpWriter $writer)
{if ...}
at line 157
string
macroEndIf(MacroNode $node, PhpWriter $writer)
{/if ...}
at line 180
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 245
void
macroEndIfContent(MacroNode $node, PhpWriter $writer)
n:ifcontent
at line 258
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 315
string
macroTranslate(MacroNode $node, PhpWriter $writer)
{_$var |modifiers}
at line 343
string
macroInclude(MacroNode $node, PhpWriter $writer)
{include [file] "file" [with blocks] [,] [params]}
at line 377
string
macroSandbox(MacroNode $node, PhpWriter $writer)
{sandbox "file" [,] [params]}
at line 397
string
macroCapture(MacroNode $node, PhpWriter $writer)
{capture $variable}
at line 415
string
macroCaptureEnd(MacroNode $node, PhpWriter $writer)
{/capture}
at line 432
void
macroSpaceless(MacroNode $node)
{spaceless} ... {/spaceless}
at line 445
string
macroWhile(MacroNode $node, PhpWriter $writer)
{while ...}
at line 458
string
macroEndWhile(MacroNode $node, PhpWriter $writer)
{/while ...}
at line 472
void
macroEndForeach(MacroNode $node, PhpWriter $writer)
{foreach ...}
at line 509
string
macroBreakContinueIf(MacroNode $node, PhpWriter $writer)
{breakIf ...} {continueIf ...} {skipIf ...}
at line 535
string
macroClass(MacroNode $node, PhpWriter $writer)
n:class="..."
at line 549
string
macroAttr(MacroNode $node, PhpWriter $writer)
n:attr="..."
at line 559
string
macroDump(MacroNode $node, PhpWriter $writer)
{dump ...}
at line 573
string
macroDebugbreak(MacroNode $node, PhpWriter $writer)
{debugbreak ...}
at line 587
string
macroCase(MacroNode $node, PhpWriter $writer)
{case ...}
at line 602
string
macroVar(MacroNode $node, PhpWriter $writer)
{var ...} {default ...} {default} in {switch}
at line 693
string
macroExpr(MacroNode $node, PhpWriter $writer)
{= ...} {php ...} {do ...}
at line 707
string
macroContentType(MacroNode $node, PhpWriter $writer)
{contentType ...}
at line 750
void
macroParameters(MacroNode $node, PhpWriter $writer)
{parameters type $var, ...}
at line 793
void
macroVarType(MacroNode $node)
{varType type $var}
at line 813
string
macroVarPrint(MacroNode $node)
{varPrint [all]}
at line 825
void
macroTemplateType(MacroNode $node)
{templateType ClassName}
at line 838
void
macroTemplatePrint(MacroNode $node)
{templatePrint [ClassName]}