Skip to content

Instantly share code, notes, and snippets.

@Esmala
Created September 4, 2018 10:27
Show Gist options
  • Save Esmala/6276774308968155291eb740ab23665f to your computer and use it in GitHub Desktop.
Save Esmala/6276774308968155291eb740ab23665f 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