How To Write A Template