ctdo.de/index.php

10 lines
294 B
PHP

<?php
$loader = new \Twig\Loader\FilesystemLoader('templates');
$twig = new \Twig\Environment($loader, [
'cache' => 'compilation_cache',
]);
if (isset($_GET["page"]) && $_GET["page"] != "") {
echo $twig->render('page.html', ['title' => $_GET["page"]]);
}
?>