ctdo.de/index.php

12 lines
343 B
PHP
Raw Normal View History

<?php
2023-02-27 08:11:24 +00:00
require_once './vendor/autoload.php';
$loader = new \Twig\Loader\FilesystemLoader('./templates/');
$twig = new \Twig\Environment($loader, [
2023-02-27 08:11:24 +00:00
'cache' => './compilation_cache/',
]);
if (isset($_GET["page"]) && $_GET["page"] != "") {
echo $twig->render('page.html', ['title' => $_GET["page"]]);
}
?>