Class Parser
Latte parser.
- Nette\Object
- Nette\Latte\Parser
public
array
|
|
public
|
|
public
|
|
public
|
|
public
array
|
|
protected
|
__call(),
__callStatic(),
__get(),
__isset(),
__set(),
__unset(),
extensionMethod(),
getReflection()
|
string |
RE_STRING
|
'\'(?:\\\\.|[^\'\\\\])*\'|"(?:\\\\.|[^"\\\\])*"' |
|
string |
N_PREFIX
|
'n:' |
|
string |
CONTEXT_TEXT
|
'text' |
|
string |
CONTEXT_CDATA
|
'cdata' |
|
string |
CONTEXT_TAG
|
'tag' |
|
string |
CONTEXT_ATTRIBUTE
|
'attribute' |
|
string |
CONTEXT_NONE
|
'none' |
|
string |
CONTEXT_COMMENT
|
'comment' |
public
string
|
$defaultSyntax | 'latte' |
#
default macro tag syntax |
public
array
|
$syntaxes | array(
'latte' => array('\\{(?![\\s\'"{}])', '\\}'), // {...}
'double' => array('\\{\\{(?![\\s\'"{}])', '\\}\\}'), // {{...}}
'asp' => array('<%\s*', '\s*%>'), /* <%...%> */
'python' => array('\\{[{%]\s*', '\s*[%}]\\}'), // {% ... %} | {{ ... }}
'off' => array('[^\x00-\xFF]', ''),
) |
$reflection
|