Moodle PHP Documentation 4.4
Moodle 4.4.1 (Build: 20240610) (db07c09afc5)
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: