Twig implementation