adds extra params to Twig extension