|
| compile ($source, array $tree, $name, $customEscape=false, $charset='UTF-8', $strictCallables=false, $entityFlags=ENT_COMPAT, $disableLambdaRendering=false) |
| Compile a Mustache token parse tree into PHP source code.
|
|
| setPragmas (array $pragmas) |
| Enable pragmas across all templates, regardless of the presence of pragma tags in the individual templates.
|
|
◆ compile()
Mustache_Compiler::compile |
( |
| $source, |
|
|
array | $tree, |
|
|
| $name, |
|
|
| $customEscape = false, |
|
|
| $charset = 'UTF-8', |
|
|
| $strictCallables = false, |
|
|
| $entityFlags = ENT_COMPAT, |
|
|
| $disableLambdaRendering = false ) |
Compile a Mustache token parse tree into PHP source code.
- Parameters
-
string | $source | Mustache Template source code |
array | $tree | Parse tree of Mustache tokens |
string | $name | Mustache Template class name |
bool | $customEscape | (default: false) |
string | $charset | (default: 'UTF-8') |
bool | $strictCallables | (default: false) |
int | $entityFlags | (default: ENT_COMPAT) |
bool | $disableLambdaRendering | (default: false) |
- Return values
-
string | Generated PHP source code |
The documentation for this class was generated from the following file:
- lib/mustache/src/Mustache/Compiler.php