chore: lots of changes
This commit is contained in:
14
src/Framework/View/RenderContext.php
Normal file
14
src/Framework/View/RenderContext.php
Normal file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
namespace App\Framework\View;
|
||||
|
||||
final readonly class RenderContext
|
||||
{
|
||||
public function __construct(
|
||||
public string $template, // Dateiname oder Template-Key
|
||||
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
|
||||
) {}
|
||||
}
|
||||
Reference in New Issue
Block a user