Unlock instant, AI-driven research and patent intelligence for your innovation.

Method for achieving Web page file templating

A page file and templating technology, applied in the computer field, to achieve the effect of enhancing the ease of maintenance

Inactive Publication Date: 2014-12-10
INSPUR QILU SOFTWARE IND
View PDF2 Cites 8 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In this way the project may go back and forth several times between the programmer and the page designer

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
  • Method for achieving Web page file templating

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0017]本发明实施例提供了一种实现Web页面文件模板化的方法、测试装置和自绘控件以及系统,用于提高对自绘控件的测试效率和精确度。

[0018]为使得本发明的发明目的、特征、优点能够更加的明显和易懂,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,下面所描述的实施例仅仅是本发明一部分实施例,而非全部实施例。基于本发明中的实施例,本领域的技术人员所获得的所有其他实施例,都属于本发明保护的范围。

[0019]本发明的说明书和权利要求书及上述附图中的术语"第一”、"第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的术语在适当情况下可以互换,这仅仅是描述本发明的实施例中对相同属性的对象在描述时所采用的区分方式。此外,术语"包括”和"具有”以及他们的任何变形,意图在于覆盖不排他的包含,以便包含一系列单元的过程、方法、系统、产品或设备不必限于那些单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它单元。

[0020]以下分别进行详细说明。

[0021]本发明一种实现Web页面文件模板化的方法,首先,在Web代码文件中定义模板区域标签;其中,利用标签来界定区域内容,其在Web代码中可视,但在Web显示时自动隐藏。

[0022]其次,在Web代码文件中定义模板区域的内容,用标签作为界定符,模板区域内容采用类似普通html代码。其中,与普通html代码不同的是,本发明实施例中标签的内容采用"[[content]]”格式;用类似脚本语言的语句,实现Web内容条件判断,循环等功能,如if、else、for、break等。

[0023]最后,在模板引擎文件中,用脚本语言实现模板区域的内容。

[0024]本发明实施例中,Web页面文件的类型包含但不限于:.html、.php、.asp、.aspx等,而实现模板引擎的脚本语言包含但不限于JavaScript、Vbscript、Jscript等。

[0025]经过模板化处理的Web页面文件,划清了Web设计人员和Web实现人员的界限,由Web设计人员维护Web代码文件中的模板标签,Web实现人员维护模板引擎。

[0026]以下实施例中,以Web页面文件使用html、脚本语言使用javascript为例进行详细说明。

[0027]首先,在html文件代码中定义要使用模...

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 relates to a method for achieving Web page file templating. The method comprises the steps of defining a template region label in a Web code file, defining the content of a template region in the Web code file, and achieving the content of the template region with a scripting language in a template engine file. According to the method, the template label is defined in the Web page file, the content of the template is achieved with the scripting language in the template engine, and therefore the maintainability of a Web page is enhanced.

Description

technical field [0001] The present invention relates to the field of computer technology, in particular to a method for realizing the templating of Web page files. Background technique [0002] With the development of Web technology, the content of Web pages that are directly presented to users is constantly enriched and their functions are more powerful, which makes Web page files more complex and difficult for technicians to maintain, especially when implementing html codes in scripting languages If the Web page changes, the html code implemented in the scripting language will change accordingly. If simple modifications are involved, the html code implemented by the scripting language can be implemented very quickly. However, if more complex modifications are involved, the modification of this script code will require a lot of energy, which will affect the timely release or update of web products. [0003] Usually, the development process of a web application is as follo...

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
Inventor 王创业李振
Owner INSPUR QILU SOFTWARE IND