Class CoreMacros
Basic macros for Latte.
- {if ?} ... {elseif ?} ... {else} ... {/if}
- {ifset ?} ... {elseifset ?} ... {/ifset}
- {for ?} ... {/for}
- {foreach ?} ... {/foreach}
- {$variable} with escaping
- {=expression} echo with escaping
- {php expression} evaluate PHP statement
- {_expression} echo translation with escaping
- {attr ?} HTML element attributes
- {capture ?} ... {/capture} capture block to parameter
- {spaceless} ... {/spaceless} compress whitespaces
- {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 { }
- Latte\Macros\MacroSet implements Latte\IMacro uses Latte\Strict
- Latte\Macros\CoreMacros
public static
|
|
public
|
|
public
array|null
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
#
macroBreakContinueIf(
{breakIf ...} {continueIf ...} |
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
__construct(),
addMacro(),
checkExtraArgs(),
getCompiler(),
nodeClosed(),
nodeOpened()
|
__call(),
__callStatic(),
__get(),
__isset(),
__set(),
__unset()
|
ALLOWED_IN_HEAD,
AUTO_CLOSE,
AUTO_EMPTY,
DEFAULT_FLAGS
|