A very simple Twig environment to build static sites. No WordPress, no nothing.
- Download or fork this repo
- Set your MAMP directory to the resulting folder
index.php
is ready-to-go (loadingindex.twig
). If you want to create a new file you'll need...
require_once('loader.php');
$data = array('name' => 'Grant', 'cat' => 'Pica');
echo $twig->render('my-twig-file.twig', $data);
- Your Twig files are powered by the wonderful world of Twig functions, filters, etc. However they do NOT have Timber things like
|resize
,|wpautop
, etc.