Added twig function for route assembly