generate the publish template