add chapter 11 solutions

This commit is contained in:
lubiana 2022-05-30 20:40:45 +02:00
parent 60a1304387
commit 9fa38083b2
Signed by: lubiana
SSH key fingerprint: SHA256:vW1EA0fRR3Fw+dD/sM0K+x3Il2gSry6YRYHqOeQwrfk
21 changed files with 1975 additions and 0 deletions

View file

@ -0,0 +1,17 @@
<?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);
}
}