This program has been released before, but there was a slight problem during generation. I have modified it this time. I hope it will be helpful to everyone. It can be generated according to the news category or a single file. The same is true for deletion. If nothing is filled in, it means that all news operations are performed.
This example mainly illustrates the principle of using templates to generate static. Practical application requires each webmaster to modify and integrate it himself.
There are two commonly used methods to generate static files: one is to replace it with a template (this example), and the other is to use the XMLHttp component to read the data and save it as an html static file. Another one uses XMLHttp components. I haven't written an example yet. If you are interested, you can take a look at the fully static portal I made using xmlHttp.