Initial commit

This commit is contained in:
Oliver Davies 2022-06-07 22:00:00 +01:00
commit bd3fce7e64
25 changed files with 888 additions and 0 deletions

13
public/index.php Normal file
View file

@ -0,0 +1,13 @@
<?php
require_once __DIR__.'/../vendor/autoload.php';
use Symfony\Component\Yaml\Yaml;
use Twig\Environment;
use Twig\Loader\FilesystemLoader;
$loader = new FilesystemLoader('../templates');
$twig = new Environment($loader, ['debug' => true]);
echo $twig->render('layouts/home.html.twig', Yaml::parseFile('../resources/data.yaml'));