What is the difference between a template and a primer in DNA replication?

What is the difference between a template and a primer in DNA replication?