CoreMacros
class CoreMacros extends MacroSet
Basic macros for Latte.
- {if ?} ... {elseif ?} ... {else} ... {/if}
- {ifset ?} ... {elseifset ?} ... {/ifset}
- {for ?} ... {/for}
- {foreach ?} ... {/foreach}
- {$variable} with escaping
- {=expression} echo with escaping
- {?expression} evaluate PHP statement
- {_expression} echo translation with escaping
- {attr ?} HTML element attributes
- {capture ?} ... {/capture} capture block to parameter
- {var var => value} set template parameter
- {default var => value} set default template parameter
- {dump $var}
- {debugbreak}
- {contentType ...} HTTP Content-Type header
- {status ...} HTTP status
- {l} {r} to display { }
Methods
Details
at line 41
static
install(Compiler $compiler)
No description
at line 91
finalize()
Finishes template parsing.