Add global twig environment and loader (#745)
commit0cb04bfe6f8c5d0841a274331bbdb6b9f125f047
authorRobert Down <robertdown@live.com>
Mon, 15 May 2017 04:34:48 +0000 (15 00:34 -0400)
committerGitHub <noreply@github.com>
Mon, 15 May 2017 04:34:48 +0000 (15 00:34 -0400)
treee035a99a9fa00cf9d932eb6962b5ccd32b979fb6
parentd6310e8f711d4965876629a8db0809cefe311728
Add global twig environment and loader (#745)

Adds a twig environment and twig filesystem loader to the globals array

```php
$GLOBALS['twigLoader']->addPath('path/to/your/templates');
$displayVariables = [
    'array of variables' => 'to pass to template',
];
echo $GLOBALS['twig']->render('template-name.html.twig');
```
interface/globals.php