added twig support for templates