One is true static, that is, write out all static frames of your page that do not participate in logical operations in html, such as page layout.
Insert the logical operation field to be replaced in the static page layout, such as the {# remen} field.
Write a program to get logic code in the background, which can be the result of logic operation or html code fragment, and then replace the field {# remen} in your static page, then you will get the desired result and content in your static page.
Then the whole static page is written to the hard disk of the server, such as index.html, by streaming, so that users can visit index.html.
Generate static pages directly. The advantage of this is that the page visited by visitors is a real static page, and it is no longer necessary to participate in the real-time logic operation of the program to get the result, which is a qualitative improvement to the page speed and convenient for search engine crawlers.