dynamic mapping functions list in template