Template replace on new file from template