Convert maps templating to twig