convert menu templates to twig