ILIAS
trunk Revision v12.0_alpha-1221-g4e438232683
◀ ilDoc Overview
MustacheTemplateEngine.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\Mail\TemplateEngine\Mustache
;
22
23
use
ILIAS\Mail\TemplateEngine\TemplateEngineInterface
;
24
29
class
MustacheTemplateEngine
implements
TemplateEngineInterface
30
{
31
public
function
__construct
(
32
private
readonly \Mustache\Engine $engine
33
) {
34
}
35
36
public
function
render
(
string
$template, array|
object
$context): string
37
{
38
return
$this->engine->render($template, $context);
39
}
40
}
ILIAS\Mail\TemplateEngine\Mustache\MustacheTemplateEngine
Mustache implementation of the template engine interface.
Definition:
MustacheTemplateEngine.php:30
ILIAS\Mail\TemplateEngine\Mustache\MustacheTemplateEngine\render
render(string $template, array|object $context)
Renders a template string with the given context.
Definition:
MustacheTemplateEngine.php:36
ILIAS\Mail\TemplateEngine\Mustache\MustacheTemplateEngine\__construct
__construct(private readonly \Mustache\Engine $engine)
Definition:
MustacheTemplateEngine.php:31
ILIAS\Mail\TemplateEngine\TemplateEngineInterface
Interface for template engine functionality used in Mail and related components.
Definition:
TemplateEngineInterface.php:29
ILIAS\Mail\TemplateEngine\Mustache
Definition:
MustacheTemplateEngine.php:21
components
ILIAS
Mail
src
TemplateEngine
Mustache
MustacheTemplateEngine.php
Generated on Sun Apr 5 2026 23:03:23 for ILIAS by
1.9.4 (using
Doxyfile
)