Method and device for generating webpage based on webpage template

A webpage template and a technology for generating webpages, applied in the Internet field, can solve problems such as errors, reduced webpage development efficiency, inability to fix language environment adaptation, etc., and achieve the effect of reducing burden and pressure

CN105095497AActive Publication Date: 2015-11-25BEIJING QIHOO TECH CO LTD
6 Cites 12 Cited by

Patent Information

Authority / Receiving Office
CN · China
Current Assignee / Owner
Publication Date
2015-11-25

Smart Images

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

Abstract

The invention discloses a method and device for generating a webpage based on a webpage template. The webpage template comprises a foundation template and one or more subtemplates. The method comprises the steps that a head parameter of one of the subtemplates is obtained, and the head parameter comprises language environment tagging parameters used for tagging one or more language environments; according to the language environment tagging parameters, the corresponding language environments are matched, and environment parameters and rendering components which accord with the language environment requirements are obtained; the webpage template is obtained by inserting the subtemplates into the foundation template, and value assignment is conducted on the environment parameters of the subtemplates; the webpage template is run so that the webpage can be formed. According to the method and device for generating the webpage based on the webpage template, the language environments are matched according to programming languages, a designer can design the webpage template according to the mastered programming languages, and the defect that in the prior art, due to the fact that a fixed language can be used for design and matching of the language environments cannot be conducted automatically when other languages are used for the design, an error occurs is overcome.
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 method and device for generating a webpage based on a webpage template. Background technique

[0002] In the prior art, in order to quickly generate a large number of web pages, web page templates are generally used to generate web pages. However, existing web page templates only allow template designers to use a fixed programming language and a fixed language environment for template design, for example, A certain web template only allows template designers to use the Java language for template design. However, not all template designers are proficient in this language. Maybe some template designers have mastered the PHP language, and some template designers have mastered the JavaScript language. However, these two programming languages ​​cannot adapt to the fixed language environment required by the web page template, so errors occur, web pages cannot be generated, and t...

Examples

Embodiment Construction

[0021] Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided for more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0022] In the present invention, the web page template includes a basic template and at least one sub-template. The basic template is used to define the basic framework of the webpage, for example, the webpage is composed of several modules, etc.; the sub-template can define the webpage content, webpage style, actions on the webpage, etc., which can be specifically reflected in the content of each module. figure 1 A schematic diagr...