Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Modularization thinking-based template framework design method and system

A template framework and design method technology, applied in memory systems, program control design, software engineering design, etc., can solve problems such as low performance, sharply increased maintenance costs, frequent page rendering, etc., to facilitate work, reduce complexity, and improve The effect of development efficiency

Active Publication Date: 2017-02-01
BEIJING UNIV OF POSTS & TELECOMM
View PDF3 Cites 29 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] From the perspective of the page, the current Ajax-based front-end development method has a problem when interacting with the server: frequent data interaction leads to frequent page rendering
[0006] 1) Performance: The template engine relies on the Function constructor when rendering. Function, like eval, setTimeout, and setInterval, provides a method to access the javascript parsing engine using text, but the performance of executing javascript in this way is very low
[0007] 2) Debugging: Since it is a dynamic execution string, if an error is encountered, the debugger cannot capture the source of the error, which makes template BUG debugging extremely painful
In an engine without fault tolerance, partial templates can even cause the entire application to crash due to data anomalies. As the number of templates increases, maintenance costs will increase dramatically

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
  • Modularization thinking-based template framework design method and system
  • Modularization thinking-based template framework design method and system
  • Modularization thinking-based template framework design method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0043] Embodiments of the present invention are described in detail below, examples of which are shown in the drawings, wherein the same or similar reference numerals designate the same or similar elements or elements having the same or similar functions throughout. The embodiments described below by referring to the figures are exemplary only for explaining the present invention and should not be construed as limiting the present invention.

[0044] The template frame design method and system based on the idea of ​​modularization according to the embodiments of the present invention will be described below with reference to the accompanying drawings.

[0045] image 3 It is the flow of the formwork frame design method based on the idea of ​​modularization according to an embodiment of the present invention. Such as image 3 As shown, the method includes the following steps:

[0046] Step S1: Build a template engine in the pre-compilation stage according to Node.js and the ...

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 proposes a modularization thinking-based template framework design method and system. The method comprises the steps of constructing a pre-compilation-stage template engine and a front-end template engine, and obtaining a template framework according to the pre-compilation-stage template engine and the front-end template engine. According to the method and the system, based on the perspective of modularization, a set of complete modularization template framework is constructed from the aspect that static resources do not have proper modularization rules and methods; two aspects of synchronous modularization and asynchronous dynamic modularization are involved, and from the two aspects, the high-performance front-end template engine used for asynchronous and dynamic template rendering, and the pre-compilation-stage template engine used for synchronous template generation are realized respectively; and the whole process is subjected to process design and standardization once from the perspective of engineering. According to the method, the template framework is constructed based on modularization thinking, so that the work of developers is greatly facilitated, the complexity of maintenance of code development can be lowered, and the development efficiency is improved.

Description

technical field [0001] The invention relates to the technical field of front-end development, in particular to a template frame design method and system based on the idea of ​​modularization. Background technique [0002] The popularity of web applications greatly increases the complexity of front-end applications, which directly leads to the continuous expansion of the front-end of the website. Front-end development has problems such as large code size, difficult organization and maintenance, low code reusability, and poor scalability. Therefore, it will become more and more important to establish a reasonable front-end development framework and follow development standards and specifications. [0003] From the perspective of the page, the current Ajax-based front-end development method has a problem when interacting with the server: frequent data interaction leads to frequent page rendering. When data is transmitted from the background to the front-end, the data needs to ...

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/44G06F9/45
CPCG06F8/38G06F8/41
Inventor 鄂海红宋美娜杨婷
Owner BEIJING UNIV OF POSTS & TELECOMM
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products