Template joining