Property | Type | Description | |
---|---|---|---|
$defaultSyntax | default macro tag syntax | ||
$shortNoEscape | |||
$syntaxes | array |
Method | Description | |
---|---|---|
getLine ( ) | ||
parse ( $input ) : latte\Token[] |
Process all {macros} and |
|
parseMacroTag ( $tag ) : array | Parses macro tag to name, arguments a modifiers parts. | |
setContentType ( $type ) : static | ||
setContext ( $context, $quote = NULL ) : static | ||
setDelimiters ( $left, $right ) : static | Changes macro tag delimiters. | |
setSyntax ( $type ) : static | Changes macro tag delimiters. |
Method | Description | |
---|---|---|
filter ( latte\Token $token ) | Process low-level macros. |
Method | Description | |
---|---|---|
addToken ( $type, $text ) | ||
contextHtmlAttribute ( ) | Handles CONTEXT_HTML_ATTRIBUTE. | |
contextHtmlCData ( ) | Handles CONTEXT_HTML_CDATA. | |
contextHtmlComment ( ) | Handles CONTEXT_HTML_COMMENT. | |
contextHtmlTag ( ) | Handles CONTEXT_HTML_TAG. | |
contextHtmlText ( ) | Handles CONTEXT_HTML_TEXT. | |
contextMacro ( ) | Handles CONTEXT_MACRO. | |
contextNone ( ) | Handles CONTEXT_NONE. | |
match ( $re ) : array | Matches next token. | |
processMacro ( $matches ) |
protected filter ( latte\Token $token ) | ||
$token | latte\Token |
public parse ( $input ) : latte\Token[] | ||
return | latte\Token[] |
public parseMacroTag ( $tag ) : array | ||
return | array |
public setDelimiters ( $left, $right ) : static | ||
return | static |
public setSyntax ( $type ) : static | ||
return | static |