Class Parser
Latte parser.
- Latte\Object
- Latte\Parser
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
protected
|
__call(),
__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' |
public
string
|
$defaultSyntax | 'latte' |
#
default macro tag syntax |
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]', ''),
) |