21-Page static-static test-static programming

Reference: https://blog.csdn.net/minihuabei/article/details/113725122 (18-page static-template management-GridFS research-file retrieval)
https://blog.csdn.net/minihuabei/article/details /113615605 (10-freemarker static test-based on template file static)
https://blog.csdn.net/minihuabei/article/details/113634638 (11-freemarker static test-based on template string static)

Realize the function

News website, News 1 and News 2 use the same template, but eventually two static files are generated and saved in the template folder.

1pageSerivce add program

The upper chapter has completed the test of data model and template management, and the following is the test of the static process of the entire page. The process is as follows:
1. Fill in the page DataUrl Fill in the DataUrl in the edit cms page information interface, and save this field to the cms_page collection.
2. The static program obtains the DataUrl of the page.
3. The static program remotely requests the DataUrl to obtain the data model.
4. The static program obtains the template information of the
page 5. Performs page static
Insert picture description here

Guess you like

Origin blog.csdn.net/minihuabei/article/details/113884729