Skip to content

Instantly share code, notes, and snippets.

@Esmala
Created September 4, 2018 10:29
Show Gist options
  • Save Esmala/addc4ee9340ae82ede2c8597101ce29a to your computer and use it in GitHub Desktop.
Save Esmala/addc4ee9340ae82ede2c8597101ce29a to your computer and use it in GitHub Desktop.
<?php
require_once 'vendor/autoload.php';
$loader = new Twig_Loader_Filesystem('templates');
$twig = new Twig_Environment($loader);
echo $twig->render('index.html.twig', array('navigation' => array('link_href' => 'about.html', 'link' => 'About')));
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment