NODEJS-based template automatic compiling online method and system

A compilation and template technology, applied in the field of automatic compilation, to achieve the effect of simple operation, shortened development cycle, and lower access threshold

Active Publication Date: 2016-12-07
MICRO DREAM TECHTRONIC NETWORK TECH CHINACO
View PDF3 Cites 14 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Therefore, for developers who do not understand this function, they need to spend time

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
  • NODEJS-based template automatic compiling online method and system
  • NODEJS-based template automatic compiling online method and system
  • NODEJS-based template automatic compiling online method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0021] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0022] Such as figure 1 As shown, it is a flowchart of a NODEJS-based template automatic compilation and online method according to an embodiment of the present invention, and the method includes:

[0023] 101. When the NODEJS service is used to detect that the webpage template file changes, read the changed webpage template file;

[0024] 102. Perform content standardization detection on the read web page template file;

[0025] 103. If the content standard...

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

Embodiments of the invention provide NODEJS-based template automatic compiling online method and system. The method comprises the following steps of: when the fact that a webpage template file changes is monitored by utilizing a NODEJS service, reading the webpage template file which changes; carrying out content normalization detection on the read webpage template file; if the read webpage template file passes the content normalization detection, compiling the webpage template file so as to generate a compiled webpage template file; carrying out data simulation on the basis of the compiled webpage template file so as to obtain a data simulated webpage template file; and taking the data simulated webpage template file as an online file to update a corresponding original online file on a page server. The method and system provided by the invention are on the basis of NODEJS, so that the method and system are suitable for front-end personnel to carry out development and maintenance, and have the effects of reducing the access threshold of the front-end development personnel, helping the front-end development personnel to accelerate the development process, shortening the development period and making the operation simple through local mounting of NODEJS environment.

Description

technical field [0001] The present invention relates to the technical field of automatic compilation, in particular to a method and system for automatically compiling and launching templates based on NODEJS (a Javascript runtime). Background technique [0002] Automation is a process in which a machine or device is automatically operated or controlled according to a predetermined program or instruction without human intervention. The use of automation technology can not only liberate people from heavy physical labor and part of the mental work environment, but also greatly improve labor productivity. [0003] Existing automated compilation work includes: Gulp (a type of simulation), Grunt (a command-line build tool for JavaScript engineering based on tasks), Webpack (a free development software provided by xilinx), and a series of build scripts. [0004] Some problems of the above existing technologies are that they are all used to create the most basic unit of compilation,...

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/45G06F17/30
CPCG06F8/42G06F8/447G06F16/9577
Inventor 刘伟
Owner MICRO DREAM TECHTRONIC NETWORK TECH CHINACO
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