Parser
class Parser
Latte parser.
Constants
internal RE_STRING |
|
internal RE_TAG_NAME |
|
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 | ||
$syntaxes |
Methods
array
parse(string $input)
Process all {macros} and
setContentType(string $type)
No description
setContext(string $context, mixed $quote = null)
No description
setDelimiters(string $left, string $right)
Changes macro tag delimiters (as regular expression).
array|null
parseMacroTag(string $tag)
Parses macro tag to name, arguments a modifiers parts.
int
getLine()
No description
Details
at line 91
array
parse(string $input)
Process all {macros} and
at line 372
Parser
setContentType(string $type)
No description
at line 389
Parser
setContext(string $context, mixed $quote = null)
No description
at line 400
Parser
setSyntax(string $type)
Changes macro tag delimiters.
at line 416
Parser
setDelimiters(string $left, string $right)
Changes macro tag delimiters (as regular expression).
at line 429
array|null
parseMacroTag(string $tag)
internal |
Parses macro tag to name, arguments a modifiers parts.
at line 466
int
getLine()
No description
at line 475
protected void
filter(Token $token)
Process low-level macros.
Traits
Better OOP experience.