Support any number of custom templates in dict format