Control method and system for dynamic configuration of HTML template

A dynamic configuration and control method technology, applied in the field of Internet information, can solve the problems of low efficiency and achieve the effect of simple template configuration process

Active Publication Date: 2016-08-03
JIANGSU ZHONGWEI TECH SOFTWARE SYST
View PDF5 Cites 20 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] In order to overcome the problem of multiple steps and low efficiency in the dynamic configuration process of HTML templates in the prior art, the present invention provides a control method and system for dynamic configuration of HTML 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
  • Control method and system for dynamic configuration of HTML template

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0040] like figure 1 , the specific implementation mode discloses a control method for dynamic configuration of HTML templates, the method configures template configuration properties to automatically create a user interface based on JSON data, easy to add, no need to operate HTML and js. Configuration template configuration can realize dynamic association binding, automatic assignment, multi-attribute calculation assignment, and automatic filling and rendering of templates. As shown in the figure, the method of this embodiment includes:

[0041] Step 1: Create or copy a piece of HTML code from the target webpage according to user instructions, and use template tags to replace the attributes that need to be set.

[0042] Specifically, the source of the HTML code can be in various forms, for example, it can be the content in the user's clipboard, or it can be a text document imported by the user, or the content manually input by the user. HTML code and hypertext markup langua...

Embodiment 2

[0059] This specific implementation mode discloses a system that applies the control method for dynamic configuration of HTML templates in Embodiment 1.

[0060] Specifically, the system includes a configuration file, a template and a rule engine, the template is respectively connected to the configuration file and the rule engine, and a template label generator is set inside the template.

[0061] The system in this specific embodiment is a set of template creation and generation tools, which mainly create and generate template files through configuration files and publish them as html content. The template of the system helps developers shield the front-end knowledge through the template tag generator implemented internally, so that they can configure and realize the template operation interface by writing json files; developers only need to do form configuration to output the front-end operation interface, and also subtract front-end development work. The system has its ow...

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 provides a control method for dynamic configuration of an HTML template. The control method comprises the following steps: 1, acquiring an HTML code, and replacing an attribute to be set by a template label; 2, establishing a configuration attribute with a JSON structural file according to the template label in the step 1; 3, loading the configuration attribute set in the step 2, cyclically reading each element, performing interface drawing and binding relevant events; 4, in the process of attribute configuration selection, calling a relevant method in response to events bound to corresponding elements; 5, reading the template established in the step 1, matching corresponding contents, extracting the contents, and replacing corresponding values in the saved configuration attribute. A system applying the method comprises a code acquisition unit, a JSON configuration attribute unit, a reading unit, an event proxy server and an interface generator. The control method is easy for adding, operation of html and js is avoided, and a user unfamiliar with codes can configure a template and an attribute conveniently.

Description

technical field [0001] The invention relates to the field of Internet information technology, in particular to a control method and system for dynamic configuration of HTML templates. Background technique [0002] The template website is applied with the already-formed website as the framework. You can set some information of the website in the background, and change this website into the website information you need. The most direct way is the self-service website building provided by some websites and our well-known blog. For example, Gugu Internet and China Netbank provide professional website templates. In addition, some companies modify the websites that have been designed by their own companies and then apply them such as modifying the style, website name and other information, but the general format and the code inside have not been changed. , this site can also be called a template site. Their biggest feature is time-saving, labor-saving and simple operation. A web...

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): G06F17/21G06F17/24
CPCG06F40/117G06F40/186
Inventor 何中陈甲伟戴建峰严伟张龙徐晓辉薛炜何登
Owner JIANGSU ZHONGWEI TECH SOFTWARE SYST
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