Parser
class Parser extends Object
Latte parser.
Constants
internal RE_STRING |
|
internal N_PREFIX |
|
internal CONTEXT_HTML_TEXT |
|
internal CONTEXT_CDATA |
|
internal CONTEXT_HTML_TAG |
|
internal CONTEXT_HTML_ATTRIBUTE |
|
internal CONTEXT_RAW |
|
internal CONTEXT_HTML_COMMENT |
|
internal CONTEXT_MACRO |
|
Properties
string | $defaultSyntax | ||
bool | $shortNoEscape | ||
array | $syntaxes |
Methods
setContentType($type)
No description
setContext($context, $quote = NULL)
No description
setDelimiters($left, $right)
Changes macro tag delimiters.
array
parseMacroTag($tag)
Parses macro tag to name, arguments a modifiers parts.
getLine()
No description
Details
at line 79
Token[]
parse($input)
Process all {macros} and
at line 326
Parser
setContentType($type)
No description
at line 344
Parser
setContext($context, $quote = NULL)
No description
at line 356
Parser
setSyntax($type)
Changes macro tag delimiters.
at line 374
Parser
setDelimiters($left, $right)
Changes macro tag delimiters.
at line 387
array
parseMacroTag($tag)
internal |
Parses macro tag to name, arguments a modifiers parts.
at line 425
getLine()
No description
at line 436
protected
filter(Token $token)
Process low-level macros.