Template structuring