Class Parser
Latte parser.
- Nette\Object
- Nette\Latte\Parser
public
|
|
public
|
|
public
|
|
public
|
|
public
array
|
|
protected
|
__call(),
__callStatic(),
__get(),
__isset(),
__set(),
__unset(),
extensionMethod(),
getReflection()
|
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 | TRUE |
|
public
array
|
$syntaxes | array(
'latte' => array('\\{(?![\\s\'"{}])', '\\}'), // {...}
'double' => array('\\{\\{(?![\\s\'"{}])', '\\}\\}'), // {{...}}
'asp' => array('<%\s*', '\s*%>'), /* <%...%> */
'python' => array('\\{[{%]\s*', '\s*[%}]\\}'), // {% ... %} | {{ ... }}
'off' => array('[^\x00-\xFF]', ''),
) |
$reflection
|