finalize twig extension