Method and device for generating web page

A webpage generation and webpage technology, applied in the computer field, can solve the problems of low webpage generation efficiency and achieve the effect of improving generation efficiency

Active Publication Date: 2019-09-20
TENCENT TECH (BEIJING) CO LTD
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] In order to solve the problem of low webpage generation efficiency caused by the server citing more common template files to generate webpages, the embodiment of the present invention provides a webpage generation method and device

Method used

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
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for generating web page
  • Method and device for generating web page
  • Method and device for generating web page

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0025] In order to make the object, technical solution and advantages of the present invention clearer, the implementation manner of the present invention will be further described in detail below in conjunction with the accompanying drawings.

[0026] Please refer to figure 1 , which shows a method flowchart of a method for generating a webpage provided by an embodiment of the present invention, and the method for generating a webpage can be applied to a server. The method for generating the webpage includes:

[0027] Step 101, obtaining webpage data through the view layer;

[0028] The webpage data refers to the data used to generate the webpage indicated by the webpage acquisition request, and the webpage acquisition request is sent by the client.

[0029] The view layer is used to process the obtained webpage data into webpages.

[0030] Step 102, sending the web page data to the layout layer through the view layer;

[0031] If the view layer calls the layout layer to ...

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

PUM

No PUM Login to view more

Abstract

The invention discloses a method and device for webpage generation and belongs to the technical field of computers. The method comprises the steps of acquiring webpage data through a view layer; sending the webpage data to a layout layer through the view layer; and using the webpage data to replace contents of corresponding webpage components in a layout file through the layout layer, so as to obtain a webpage, wherein the layout file is used for determining each webpage component of the webpage. The device comprises a data acquiring module, a data sending module and a webpage generating module. According to the method and device for webpage generation, the problem that the webpage generation efficiency is low due to the fact that a server generates a webpage by citing a universal template file many times is solved, and the effect of improving webpage generation efficiency is achieved.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a method and device for generating a webpage. Background technique [0002] When the terminal acquires the webpage from the server, it can send a webpage acquisition request to the server, and the server acquires webpage data according to the webpage acquisition request, generates a webpage according to the webpage data, sends the webpage to the terminal, and the terminal displays the received webpage. [0003] A web page usually includes a header, a sidebar, and a footer, so developers can edit common template files such as a header template file, a sidebar template file, and a footer template file. When generating a webpage according to the webpage data, the server sequentially invokes the edited general template file, adds the webpage data to the corresponding general template file, and obtains the webpage. [0004] In the process of realizing the present invention, the inv...

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

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Patents(China)
IPC IPC(8): G06F16/958
Inventor 闫小坤郝翔曹涛
Owner TENCENT TECH (BEIJING) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products