Create template file