set up twig environment and twig template files