ILIAS  trunk Revision v12.0_alpha-1221-g4e438232683
MustacheTemplateEngine.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
24
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}
Mustache implementation of the template engine interface.
render(string $template, array|object $context)
Renders a template string with the given context.
__construct(private readonly \Mustache\Engine $engine)
Interface for template engine functionality used in Mail and related components.