Adding styles for a webpage.
This commit is contained in:
@@ -2,4 +2,16 @@
|
||||
|
||||
require_once __DIR__ . '/vendor/autoload.php';
|
||||
|
||||
echo "These are the results of the AoC 2025 challenge:\n";
|
||||
use Aoc2025\Days\Day1;
|
||||
use Aoc2025\Services\Template;
|
||||
|
||||
$day_1 = new Day1();
|
||||
$day_1_answer = $day_1->run();
|
||||
|
||||
$template = new Template('main.html');
|
||||
$substitutions = [
|
||||
'day_1_answer' => $day_1_answer,
|
||||
];
|
||||
$response = $template->render($substitutions);
|
||||
|
||||
echo $response;
|
||||
|
||||
Reference in New Issue
Block a user