ctdo.de/index.php

12 lines
343 B
PHP

<?php
require_once './vendor/autoload.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"]]);
}
?>