Add Twig route function