Added an hookable extension for Twig