Add Twig extension snippet.