diff --git a/src/Views/layout.php b/src/Views/layout.php new file mode 100644 index 0000000..d8addef --- /dev/null +++ b/src/Views/layout.php @@ -0,0 +1,34 @@ +` content (e.g. a per-template script tag). + */ +function render_layout(callable $body, string $csrf, string $title, string $extraHead = ''): void +{ + $e = static fn (string $v): string => Escape::html($v); + $a = static fn (string $v): string => Escape::attr($v); + ?> + + + + + <?= $e($title) ?> + + + + + + + + +