Files
Stefan Lazic a451060c1b Initial
Takes in a file, process it and output a new file with additional columns.
2026-07-10 15:45:02 +01:00

19 lines
326 B
PHP

<?php
declare(strict_types=1);
namespace App\Support;
final class View
{
public function render(string $template, array $data = []): string
{
extract($data, EXTR_SKIP);
ob_start();
require __DIR__ . '/../../templates/' . $template . '.php';
return (string) ob_get_clean();
}
}