Page rendering method and device based on template engine

A template engine and template technology, applied in the Internet field, can solve problems such as thread blocking, page freeze, and page unresponsiveness, and achieve the effect of accelerating rendering and improving rendering performance
CN107643889BActive Publication Date: 2020-03-24PING AN TECH (SHENZHEN) CO LTD

Patent Information

Authority / Receiving Office
CN ยท China
Patent Type
Patents(China)
Current Assignee / Owner
PING AN TECH (SHENZHEN) CO LTD
Publication Date
2020-03-24

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

Abstract

The invention relates to a page rendering method and device based on a template engine. The method comprises the following steps of monitoring a message sent by a main thread of the template engine through a working thread monitoring template; receiving the message through the working thread and parsing the message to obtain a pass parameter; making the working thread generate an HTML character string according to the pass parameter; and sending the HTML character string to the main thread of the template engine through the working thread in order to make the main thread of the template enginedisplay the page according to the HTML character string. According to the page rendering method and device based on the template engine, the rendering of the page can be accelerated, the rendering performance of the page can be improved and the condition of lag of the page can be avoided.
Need to check novelty before this filing date? Find Prior Art

Description

technical field

[0001] The invention relates to the technical field of the Internet, in particular to a page rendering method and device based on a template engine. Background technique

[0002] With the development of Internet technology, front-end applications have become more and more complex. Template engines, as the most important part of the separation of data and interfaces, are favored by more and more front-end developers. Rendering refers to the process of generating an image from a model. The template engine can generate an HTML (HyperText Markup Language, HyperText Markup Language) document from a template file and data, so as to realize the rendering of a web page. In the traditional way, the template engine compiles the template file through the template syntax, and uses the data to generate the final HTML document. This process is executed serially. When it is necessary to generate an HTML document with a complex structure, it takes a long time to compile In ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More