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

Public Member Functions

 __construct (Mustache_Engine $mustache, Mustache_Context $context, $delims=null)
 Mustache Lambda Helper constructor.
 
 __invoke ($string)
 Render a string as a Mustache template with the current rendering context.
 
 render ($string)
 Render a string as a Mustache template with the current rendering context.
 
 withDelimiters ($delims)
 Get a Lambda Helper with custom delimiters.
 

Constructor & Destructor Documentation

◆ __construct()

Mustache_LambdaHelper::__construct ( Mustache_Engine $mustache,
Mustache_Context $context,
$delims = null )

Mustache Lambda Helper constructor.

Parameters
Mustache_Engine$mustacheMustache engine instance
Mustache_Context$contextRendering context
string$delimsOptional custom delimiters, in the format {{= <% %> =}}. (default: null)

Member Function Documentation

◆ __invoke()

Mustache_LambdaHelper::__invoke ( $string)

Render a string as a Mustache template with the current rendering context.

Parameters
string$string
Return values
stringRendered template

◆ render()

Mustache_LambdaHelper::render ( $string)

Render a string as a Mustache template with the current rendering context.

Parameters
string$string
Return values
stringRendered template

◆ withDelimiters()

Mustache_LambdaHelper::withDelimiters ( $delims)

Get a Lambda Helper with custom delimiters.

Parameters
string$delimsCustom delimiters, in the format {{= <% %> =}}
Return values
Mustache_LambdaHelper

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