Merge with templates