Class CoreMacros
Basic macros for Latte.
- {if ?} ... {elseif ?} ... {else} ... {/if}
- {ifset ?} ... {elseifset ?} ... {/ifset}
- {for ?} ... {/for}
- {foreach ?} ... {/foreach}
- {$variable} with escaping
- {!$variable} without escaping
- {=expression} echo with escaping
- {!=expression} echo without escaping
- {?expression} evaluate PHP statement
- {_expression} echo translation with escaping
- {!_expression} echo translation without 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}
- {l} {r} to display { }
- Nette\Object
- Nette\Latte\Macros\MacroSet implements Nette\Latte\IMacro
- Nette\Latte\Macros\CoreMacros
public static
|
|
public
array(prolog,
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
#
macroInclude(
{include "file" [,] [params]} |
public
|
|
public
|
|
public
|
|
public
|
|
public
|
#
macroBreakContinueIf(
{breakIf ...} {continueIf ...} |
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public static
|
#
includeTemplate( mixed $destination, array $params,
Includes subtemplate. |
public static
|
#
initRuntime(
Initializes local & global storage in template. |
__construct(),
addMacro(),
getCompiler(),
initialize(),
nodeClosed(),
nodeOpened()
|
__call(),
__callStatic(),
__get(),
__isset(),
__set(),
__unset(),
extensionMethod(),
getReflection()
|
$reflection
|