메소드 |
설명 |
|
blockBegin ( array\arraystring | integer> &$context, arrayinteger | string | array> $vars ) : boolean |
validate block begin token |
|
blockCustomHelper ( array\arraystring | integer> &$context, arrayinteger | string | array> $vars, boolean $inverted = false ) : integer | null |
validate block custom helper token |
|
blockEnd ( array\arraystring | integer> &$context, arrayinteger | string | array> &$vars, string | null $match = null ) : boolean |
Return compiled PHP code for a handlebars block end token |
|
builtin ( array\arraystring | integer> &$context, arrayinteger | string | array> $vars ) |
validate builtin helpers |
|
comment ( string[] &$token, array\arraystring | integer> &$context ) : boolean | null |
handle comment |
|
delimiter ( string[] $token, array\arraystring | integer> &$context ) : boolean | null |
Verify delimiters and operators |
|
doElse ( array\arraystring | integer> &$context, arrayinteger | string | array> $vars ) : integer |
Return 1 or larger number when else token detected |
|
doElseChain ( array\arraystring | integer> &$context ) |
handle else chain |
|
doIf ( array\arraystring | integer> &$context, arrayinteger | string | array> $vars ) : boolean |
validate if token |
|
inline ( array\arraystring | integer> &$context, arrayinteger | string | array> $vars ) : boolean |
validate inline partial |
|
inlinePartial ( array\arraystring | integer> &$context, arrayinteger | string | array> $vars ) : boolean | null |
validate inline partial begin token |
|
invertedSection ( array\arraystring | integer> &$context, arrayinteger | string | array> $vars ) : integer |
validate inverted section |
|
isBlockHelper ( array\arraystring | integer> $context, arrayinteger | string | array> $vars ) : boolean | null |
detect for block custom helper |
|
isDelimiter ( array\arraystring | integer> &$context ) : boolean | null |
handle delimiter change |
|
operator ( string $operator, array\arraystring | integer> &$context, arrayinteger | string | array> &$vars ) : boolean | integer | null |
Verify operators |
|
partial ( array\arraystring | integer> &$context, arrayinteger | string | array> $vars ) : integer | boolean |
validate partial |
|
partialBlock ( array\arraystring | integer> &$context, arrayinteger | string | array> $vars ) : boolean | null |
validate partial block token |
|
pushLeft ( array\arraystring | integer> &$context ) |
push left string of current token and clear it |
|
pushStack ( array\arraystring | integer> &$context, string $operation, arrayinteger | string | array> $vars ) |
push current token into the section stack |
|
pushToken ( array\arraystring | integer> &$context, string | array $token ) |
push a token into the stack when it is not empty string |
|
rawblock ( string[] &$token, array\arraystring | integer> &$context ) : boolean | null |
handle raw block |
|
section ( array\arraystring | integer> &$context, arrayinteger | string | array> $vars, boolean $isEach = false ) : boolean |
validate section token |
|
spacing ( array &$token, array\arraystring | integer> &$context, boolean $nost = false ) : string | null |
Modify $token when spacing rules matched. |
|
token ( string[] &$token, array\arraystring | integer> &$context ) |
Collect handlebars usage information, detect template error. |
|
unless ( array\arraystring | integer> &$context, arrayinteger | string | array> $vars ) : boolean |
validate unless token |
|
with ( array\arraystring | integer> &$context, arrayinteger | string | array> $vars ) : boolean |
validate with token |
|