convert namespace to twig format