Twig extension.