Свойство | Тип | Описание | |
---|---|---|---|
$lastParsed |
Метод | Описание | |
---|---|---|
compileSubExpression ( array\array |
Get string presentation of a sub expression | |
compileTemplate ( array\array |
Compile template into PHP code | |
composePHPRender ( array\array |
Compose LightnCandy render codes for include() | |
inline ( array\array |
handle inline partial | |
partial ( array\array |
handle partial |
Метод | Описание | |
---|---|---|
addUsageCount ( array\array |
Add usage count to context | |
blockBegin ( array\array |
Return compiled PHP code for a handlebars block begin token | |
blockCustomHelper ( array\array |
Return compiled PHP code for a handlebars block custom helper begin token | |
blockEnd ( array\array |
Return compiled PHP code for a handlebars block end token | |
compileLog ( array\array |
Return compiled PHP code for a handlebars log token | |
compileLookup ( array\array |
Return compiled PHP code for a handlebars lookup token | |
compileOutput ( array\array |
Return compiled PHP code for template output | |
compileToken ( array\array |
Return compiled PHP code for a handlebars token | |
compileVariable ( array\array |
Return compiled PHP code for a handlebars variable token | |
customHelper ( array\array |
Return compiled PHP code for a handlebars custom helper token | |
doElse ( array\array |
Return compiled PHP code for a handlebars else token | |
getFuncName ( array\array |
Get function name for standalone or none standalone template. | |
getVariableName ( array |
Get string presentation of a variable | |
getVariableNameOrSubExpression ( array |
Get string presentation of a subexpression or a variable | |
getVariableNames ( array\array |
Get string presentation of variables | |
invertedSection ( array\array |
Return compiled PHP code for a handlebars inverted section begin token | |
section ( array\array |
compile {{#foo}} token | |
with ( array\array |
compile {{with}} token |
protected static blockBegin ( array\array |
||
$context | array\array |
|
$vars | array |
|
Результат | string | Return compiled code segment for the token |
protected static blockCustomHelper ( array\array |
||
$context | array\array |
|
$vars | array |
|
$inverted | boolean | the logic will be inverted |
Результат | string | Return compiled code segment for the token |
protected static blockEnd ( array\array |
||
$context | array\array |
|
$vars | array |
|
$matchop | string | null | should also match to this operator |
Результат | string | Return compiled code segment for the token |
protected static compileLog ( array\array |
||
$context | array\array |
|
$vars | array |
|
$raw | boolean | is this {{{ token or not |
Результат | string | Return compiled code segment for the token |
protected static compileLookup ( array\array |
||
$context | array\array |
|
$vars | array |
|
$raw | boolean | is this {{{ token or not |
$nosep | boolean | true to compile without seperator |
Результат | string | Return compiled code segment for the token |
protected static compileOutput ( array\array |
||
$context | array\array |
|
$variable | string | PHP code for the variable |
$expression | string | normalized handlebars expression |
$raw | boolean | is this {{{ token or not |
$nosep | boolean | true to compile without seperator |
Результат | string | Return compiled code segment for the token |
public static compileSubExpression ( array\array |
||
$context | array\array |
|
$vars | array |
|
Результат | array |
protected static compileToken ( array\array |
||
$context | array\array |
|
$info | array\array |
|
Результат | string | Return compiled code segment for the token |
protected static compileVariable ( array\array |
||
$context | array\array |
|
$vars | array |
|
$raw | boolean | is this {{{ token or not |
$nosep | boolean | true to compile without seperator |
Результат | string | Return compiled code segment for the token |
public static composePHPRender ( array\array |
||
$context | array\array |
|
$code | string | generated PHP code |
Результат | string | Composed PHP code |
protected static customHelper ( array\array |
||
$context | array\array |
|
$vars | array |
|
$raw | boolean | is this {{{ token or not |
$nosep | boolean | true to compile without seperator |
$subExp | boolean | true when compile for subexpression |
Результат | string | null | Return compiled code segment for the token when the token is custom helper |
protected static getVariableName ( array |
||
$context | array |
|
$var | array |
|
$lookup | array |
|
Результат | array |
protected static getVariableNameOrSubExpression ( array |
||
$context | array |
|
$var | array |
|
Результат | array |
protected static getVariableNames ( array\array |
||
$context | array\array |
|
$vn | array |
|
$blockParams | array |
|
Результат | array |
protected static invertedSection ( array\array |
||
$context | array\array |
|
$vars | array |
|
Результат | string | Return compiled code segment for the token |
protected static section ( array\array |
||
$context | array\array |
|
$vars | array |
|
$isEach | boolean | the section is #each |
Результат | string | null | Return compiled code segment for the token |