wie funktionieren templates