talking-drupal-tailwindcss/public/index.php
2022-06-08 10:41:02 +01:00

14 lines
338 B
PHP

<?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'));