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

Web development method and device based on template engine

An engine and template technology, applied in the field of web development integration based on template engine, can solve problems such as high consumption and affect web development efficiency, and achieve the effect of reducing time consumption, increasing web development efficiency, and reducing workload

Active Publication Date: 2017-06-30
SURFILTER NETWORK TECH
View PDF7 Cites 13 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The present invention aims at the problem that it takes a lot of time to identify components from different frameworks in the existing web development process to adopt corresponding usage methods, which seriously affects the efficiency of web development, and provides a web development method based on a template engine and installation

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
  • Web development method and device based on template engine
  • Web development method and device based on template engine
  • Web development method and device based on template engine

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0052] The embodiment of the present invention provides a template engine-based web development method, see figure 1 , the method includes:

[0053] Step S11, obtaining required components from a third-party framework or component library.

[0054] In this embodiment, web development requires a large number of basic components, and these components can refer to components in third-party open source frameworks or component libraries, such as components in Mybatis framework, Spring framework, Dom4j toolkit, JqueryUI front-end framework, etc. In practical applications, while obtaining the on-demand components, the corresponding dependent resources of the components, such as JavaScript scripts, css style sheets, pictures, etc., will also be obtained. These resources are used to render the code in the components in subsequent steps.

[0055] In step S12, the obtained components are packaged according to a preset format to form a component template, and the component template inclu...

Embodiment 2

[0094] The embodiment of the present invention provides a template engine-based web development device, see Figure 5 , the device includes: an acquisition module 201 , an encapsulation module 202 , and a processing module 203 .

[0095] The acquiring module 201 is configured to acquire required components from a third-party framework or component library.

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 web development method and device based on a template engine, and belongs to the technical field of software development. The method comprises the steps of obtaining a needed component from a third party framework or a component library; encapsulating the obtained component according to a preset format to form a component template; according to a label of the component template, importing the needed component template, and forming a corresponding webpage template; through a preset template analysis engine, analyzing the webpage template and the component template corresponding to the webpage template, and forming a corresponding page. According to the web development method and device based on the template engine, the needed component is capsulated into the component template with a unified format, using differences and using interference among components of different frameworks brought by compiling style differences can be shielded, and time consumed is shortened when a programmer uses the components; moreover, by compiling the webpage template in a mode of the label of the component template, the compiling mode is brief and efficient, the compiled code is brief and easy to maintain, and the web development efficiency is further improved.

Description

technical field [0001] The invention relates to the technical field of software development, in particular to a template engine-based web development integration method and device. Background technique [0002] Currently, with the rapid development of Internet technology, web software development based on the browser / server (Browser / Server, referred to as "B / S") mode has been widely used due to its own advantages. Specifically, this mode unifies the client, concentrates the core part of system function realization on the server, and simplifies the development, maintenance and use of the system. [0003] In the existing web switching process, programmers need to prepare many basic components. These basic components are likely to come from different open source frameworks, such as: Mybatis framework, Spring framework, Dom4j toolkit, JqueryUI front-end framework, etc. The components in different frameworks The usage methods are not exactly the same. Therefore, when calling the...

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
IPC IPC(8): G06F9/44
CPCG06F8/35
Inventor 胡晓光刘刚景晓军沈智杰唐新民
Owner SURFILTER NETWORK TECH
Features
  • Generate Ideas
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More