|
| | scan ($text, $delimiters='') |
| | Scan and tokenize template source.
|
| |
|
|
const | CTAG = 'ctag' |
| |
|
const | END = 'end' |
| |
|
const | FILTERS = 'filters' |
| |
|
const | IN_TAG = 2 |
| |
|
const | IN_TAG_TYPE = 1 |
| |
|
const | IN_TEXT = 0 |
| |
|
const | INDENT = 'indent' |
| |
|
const | INDEX = 'index' |
| |
|
const | LINE = 'line' |
| |
|
const | NAME = 'name' |
| |
|
const | NODES = 'nodes' |
| |
|
const | OTAG = 'otag' |
| |
|
const | T_BLOCK_ARG = '$arg' |
| |
|
const | T_BLOCK_VAR = '$' |
| |
|
const | T_COMMENT = '!' |
| |
|
const | T_DELIM_CHANGE = '=' |
| |
|
const | T_END_SECTION = '/' |
| |
|
const | T_ESCAPED = '_v' |
| |
|
const | T_INVERTED = '^' |
| |
|
const | T_PARENT = '<' |
| |
|
const | T_PARTIAL = '>' |
| |
|
const | T_PRAGMA = '%' |
| |
|
const | T_SECTION = '#' |
| |
|
const | T_TEXT = '_t' |
| |
|
const | T_UNESCAPED = '{' |
| |
|
const | T_UNESCAPED_2 = '&' |
| |
|
const | TYPE = 'type' |
| |
|
const | VALUE = 'value' |
| |
◆ scan()
| Mustache_Tokenizer::scan |
( |
| $text, |
|
|
| $delimiters = '' ) |
Scan and tokenize template source.
- Exceptions
-
- Parameters
-
| string | $text | Mustache template source to tokenize |
| string | $delimiters | Optionally, pass initial opening and closing delimiters (default: empty string) |
- Return values
-
| array | Set of Mustache tokens |
The documentation for this class was generated from the following file:
- lib/mustache/src/Mustache/Tokenizer.php