Class CurlyBracketsFilter (namespace Nette\Templates)
Template filter curlyBrackets: support for {...} in template.
- {$variable} with escaping
- {!$variable} without escaping
- {*comment*} will be removed
- {=expression} echo with escaping
- {!=expression} echo without escaping
- {?expression} evaluate PHP statement
- {_expression} echo translation with escaping
- {!_expression} echo translation without escaping
- {link destination ...} control link
- {plink destination ...} presenter link
- {ajaxlink destination ...} ajax link
- {if ?} ... {elseif ?} ... {else} ... {/if} // or <%else%>, <%/if%>, <%/foreach%> ?
- {for ?} ... {/for}
- {foreach ?} ... {/foreach}
- {include ?}
- {cache ?} ... {/cache} cached block
- {snippet ?} ... {/snippet ?} control snippet
- {attr ?} HTML element attributes
- {block|texy} ... {/block} capture of filter block
- {contentType ...} HTTP Content-Type header
- {assign $var value} set template parameter
- {debugbreak}
Object | --CurlyBracketsFilter
Public Method Summary | |
---|---|
static stdClass |
Initializes state holder $_cb in template.
|
static string |
invoke
(string $s)
Invokes filter.
|
void |
macro
($macro, $var, $modifiers)
Process specified macro.
|
void |
macroModifiers
($var, $modifiers)
Applies modifiers.
|
string |
__invoke
(string $s)
Invokes filter.
|
Methods Inherited From Object |
---|
extensionMethod(), getClass(), getReflection(), __call(), __callStatic(), __get(), __isset(), __set(), __unset() |
Constant Summary | |||
---|---|---|---|
string | CONTEXT_ATTRIBUTE_DOUBLE |
'"' |
line 119 Context-aware escaping states |
string | CONTEXT_ATTRIBUTE_SINGLE |
"'" |
line 118 Context-aware escaping states |
int | CONTEXT_CDATA |
2 |
line 116 Context-aware escaping states |
int | CONTEXT_NONE |
4 |
line 120 Context-aware escaping states |
int | CONTEXT_TAG |
3 |
line 117 Context-aware escaping states |
int | CONTEXT_TEXT |
1 |
line 115 Context-aware escaping states |
Variable Summary | ||||
---|---|---|---|---|
static array | $macros | array(
'block' => '<?php %:macroBlock% ?>',
'/block' => '<?php... |
line 61 |
Method Details | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
line 620 initStatepublic static stdClass initState (ITemplate $template) Initializes state holder $_cb in template.
|
||||||||||||||||||
line 130 invokepublic static string invoke (string $s) Invokes filter.
|
||||||||||||||||||
line 281 macropublic void macro ($macro, $var, $modifiers) Process specified macro.
|
||||||||||||||||||
line 562 macroModifierspublic void macroModifiers ($var, $modifiers) Applies modifiers.
|
||||||||||||||||||
line 143 __invokepublic string __invoke (string $s) Invokes filter.
|