partitioned templates