Added support for twig templating.