Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
Mustache_Compiler Class Reference

Public Member Functions

 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.
 

Member Function Documentation

◆ 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$sourceMustache Template source code
array$treeParse tree of Mustache tokens
string$nameMustache 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
stringGenerated PHP source code

The documentation for this class was generated from the following file: