Adds support for Twig template rendering.