Parser
class Parser
Latte parser.
Constants
internal RE_STRING |
|
internal N_PREFIX |
|
CONTENT_HTML |
Context-aware escaping content types |
CONTENT_XHTML |
Context-aware escaping content types |
CONTENT_XML |
Context-aware escaping content types |
CONTENT_TEXT |
Context-aware escaping content types |
internal CONTEXT_NONE |
|
internal CONTEXT_MACRO |
|
internal CONTEXT_HTML_TEXT |
|
internal CONTEXT_HTML_TAG |
|
internal CONTEXT_HTML_ATTRIBUTE |
|
internal CONTEXT_HTML_COMMENT |
|
internal CONTEXT_HTML_CDATA |
|
Properties
string | $defaultSyntax | ||
deprecated | $shortNoEscape | ||
array | $syntaxes |
Methods
setContentType($type)
No description
setContext($context, $quote = null)
No description
setDelimiters($left, $right)
Changes macro tag delimiters.
array|null
parseMacroTag($tag)
Parses macro tag to name, arguments a modifiers parts.
getLine()
No description
Details
at line 87
Token[]
parse($input)
Process all {macros} and
at line 336
Parser
setContentType($type)
No description
at line 351
Parser
setContext($context, $quote = null)
No description
at line 363
Parser
setSyntax($type)
Changes macro tag delimiters.
at line 381
Parser
setDelimiters($left, $right)
Changes macro tag delimiters.
at line 394
array|null
parseMacroTag($tag)
internal |
Parses macro tag to name, arguments a modifiers parts.
at line 431
getLine()
No description
at line 442
protected
filter(Token $token)
Process low-level macros.
Traits
Better OOP experience.