using a template map, generates text