idk anymore! please put the dog down (me)!
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
use src\ViewModels\HomeData;
|
||||
|
||||
return function(HomeData $data) { ?>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title><?= htmlspecialchars($data->pageTitle) ?></title>
|
||||
</head>
|
||||
<body>
|
||||
<h1><?= htmlspecialchars($data->pageTitle) ?></h1>
|
||||
|
||||
<?php foreach ($data->posts as $post): ?>
|
||||
<h2><?= htmlspecialchars($post['title']) ?></h2>
|
||||
<p><?= htmlspecialchars($post['body']) ?></p>
|
||||
<?php endforeach; ?>
|
||||
</body>
|
||||
</html>
|
||||
<?php }; ?>
|
||||
Reference in New Issue
Block a user