Class Parser
Latte parser.
- Latte\Parser uses Latte\Strict
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
array|null
|
|
public
|
|
protected
|
__call(),
__callStatic(),
__get(),
__isset(),
__set(),
__unset()
|
string |
RE_STRING
|
# '\'(?:\\\\.|[^\'\\\\])*+\'|"(?:\\\\.|[^"\\\\])*+"' |
string |
N_PREFIX
|
# 'n:' |
string |
CONTENT_HTML
Context-aware escaping content types |
|
string |
CONTENT_XHTML
Context-aware escaping content types |
|
string |
CONTENT_XML
Context-aware escaping content types |
|
string |
CONTENT_TEXT
Context-aware escaping content types |
|
string |
CONTEXT_NONE
|
# 'none' |
string |
CONTEXT_MACRO
|
# 'macro' |
string |
CONTEXT_HTML_TEXT
|
# 'htmlText' |
string |
CONTEXT_HTML_TAG
|
# 'htmlTag' |
string |
CONTEXT_HTML_ATTRIBUTE
|
# 'htmlAttribute' |
string |
CONTEXT_HTML_COMMENT
|
# 'htmlComment' |
string |
CONTEXT_HTML_CDATA
|
# 'htmlCData' |
public
string
|
$defaultSyntax
default macro tag syntax |
# 'latte' |
public
|
$shortNoEscape
|
|
public
array
|
$syntaxes
|
# [
'latte' => ['\{(?![\s\'"{}])', '\}'], // {...}
'double' => ['\{\{(?![\s\'"{}])', '\}\}'], // {{...}}
'off' => ['\{(?=/syntax\})', '\}'], // {/syntax}
] |