read in contents of template