no-framework-tutorial/implementation/11/src/Template/MustacheRenderer.php
2025-07-08 22:52:57 +02:00

17 lines
368 B
PHP

<?php declare(strict_types=1);
namespace Lubian\NoFramework\Template;
use Mustache_Engine;
final class MustacheRenderer implements Renderer
{
public function __construct(private readonly Mustache_Engine $engine)
{
}
public function render(string $template, array $data): string
{
return $this->engine->render($template, $data);
}
}