Template engine realization method used for Web development

An implementation method and technology of a template engine, applied in the computer field, can solve problems such as centralized management of server-side codes, inability to achieve optimal performance, and inability to perform convenient retrieval, etc., to achieve long-term maintenance convenience, easy promotion, and a wide range of applications Effect

Inactive Publication Date: 2016-09-21
INSPUR FINANCIAL INFORMATION TECH CO LTD
View PDF4 Cites 10 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] The type of web page developed by the layered architecture of the general Microsoft .net platform is aspx, and one cs file corresponds to one aspx page. The file structure of the source code cannot centrally manage the code that needs to be executed on the server side
During execution, because the server-side program is frequently executed to return to the front-end user data, the load on the server is heavier than that of the server. Since HTML and C# are mixed together, it cannot be easily retrieved; every time a page is accessed, the .net control must be loaded, which cannot The result returned by pre-running the control is in the static page that provides access, and the performance cannot reach the best. Using pseudo-static can avoid the problem of URL passing parameters and violent sensitive information. Interface designers can only focus on templates

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
  • Template engine realization method used for Web development

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0025] The present invention will be further described below in conjunction with the accompanying drawings and specific embodiments.

[0026] as attached figure 1 As shown, the present invention provides a template engine implementation method for Web development. The HTML is generated through the preloading program, and the user only accesses the preloaded HTML, which can eliminate the need to transmit sensitive information such as URLs and interact with the server. security risks.

[0027] Its specific implementation process is:

[0028] 1. Design common html templates (top.html, context.html, bottom.html), which are the head of the web page, the middle data display area, and the information area at the bottom of the web page, and display data in each html area Add the tag "$text$" eg " $text$ ". Design css styles, pictures, encapsulate JS and import them into HTML templates, and design multiple sets of templates for template style switching.

[0029] 2. Traditiona...

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 template engine realization method used for Web development. The template engine realization method comprises the following specific implementation processes: designing multiple sets of general html templates for switching template styles; corresponding to different business pages to develop and design a HTML(Hypertext Markup Language) / XML (Extensive Markup Language) generator; operating business logics and data in advance, displaying a final result by the generated HTML, and dynamically displaying business data by the tag of the HTML; adding a style switching entry for background management to achieve a template switching effect; and revising contents in the template by interface design personnel, and revising the generator by program development personnel to finish the maintenance of a whole module. Compared with the prior art, the template engine realization method used for Web development has a simple integral realization process, C# codes are separated from a web page, so that convenience is brought for the long-term maintenance of a web system, and the template engine realization method has the advantages of being high in practicality, wide in applicable range and easy in popularization.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a practical template engine implementation method for Web development. Background technique [0002] Generally, the type of web page developed by the layered architecture of the Microsoft .net platform is aspx, and one cs file corresponds to one aspx page. The file structure of the source code cannot centrally manage the code that needs to be executed on the server side. During execution, because of the frequent execution of calling the server-side program to return to the front-end user data, the load on the server is heavier than that of the server. Since HTML and C# are mixed together, it cannot be easily retrieved; every time a page is accessed, the .net control must be loaded, which cannot The results returned by pre-running the control are not optimal in the static pages that provide access. Using pseudo-static can avoid the problem of sensitive information being passed t...

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 Applications(China)
IPC IPC(8): G06F9/44
CPCG06F8/313G06F8/315
Inventor 张家重连堃曹兴会李贵王玉奎
Owner INSPUR FINANCIAL INFORMATION TECH 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