Class Parser
Latte parser.
- Latte\Object
- Latte\Parser
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
protected
|
__call(),
__callStatic(),
__get(),
__isset(),
__set(),
__unset()
|
string |
RE_STRING
|
# '\'(?:\\\\.|[^\'\\\\])*+\'|"(?:\\\\.|[^"\\\\])*+"' |
string |
N_PREFIX
|
# 'n:' |
string |
CONTEXT_HTML_TEXT
|
# 'htmlText' |
string |
CONTEXT_CDATA
|
# 'cdata' |
string |
CONTEXT_HTML_TAG
|
# 'htmlTag' |
string |
CONTEXT_HTML_ATTRIBUTE
|
# 'htmlAttribute' |
string |
CONTEXT_RAW
|
# 'raw' |
string |
CONTEXT_HTML_COMMENT
|
# 'htmlComment' |
string |
CONTEXT_MACRO
|
# 'macro' |
public
string
|
$defaultSyntax
default macro tag syntax |
# 'latte' |
public
boolean
|
$shortNoEscape
|
# FALSE |
public
array
|
$syntaxes
|
# array(
'latte' => array('\\{(?![\\s\'"{}])', '\\}'), // {...}
'double' => array('\\{\\{(?![\\s\'"{}])', '\\}\\}'), // {{...}}
'asp' => array('<%\s*', '\s*%>'), /* <%...%> */
'python' => array('\\{[{%]\s*', '\s*[%}]\\}'), // {% ... %} | {{ ... }}
'off' => array('[^\x00-\xFF]', ''),
) |