2023-02-27 07:34:39 +00:00
|
|
|
<?php
|
|
|
|
$loader = new \Twig\Loader\FilesystemLoader('templates');
|
|
|
|
$twig = new \Twig\Environment($loader, [
|
2023-02-27 07:46:46 +00:00
|
|
|
'cache' => 'compilation_cache',
|
2023-02-27 07:34:39 +00:00
|
|
|
]);
|
|
|
|
|
|
|
|
if (isset($_GET["page"]) && $_GET["page"] != "") {
|
|
|
|
echo $twig->render('page.html', ['title' => $_GET["page"]]);
|
|
|
|
}
|
|
|
|
?>
|