<?php

namespace App\Framework\View;

use App\Framework\Meta\MetaData;

final readonly class RenderContext
{
    public function __construct(
        public string $template,       // Dateiname oder Template-Key
        public MetaData $metaData,
        public array $data = [],       // Variablen wie ['title' => '...']
        public ?string $layout = null, // Optionales Layout
        public array $slots = [],       // Benannte Slots wie ['main' => '<p>...</p>']
        public ?string $controllerClass = null,
    ) {}
}
