no-framework-tutorial/implementation/16-caching/src/Template/MustacheRenderer.php
2022-05-31 18:50:35 +02:00

17 lines
364 B
PHP

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