CN111443909B - Method and device for generating page - Google Patents
Method and device for generating page Download PDFInfo
- Publication number
- CN111443909B CN111443909B CN202010208637.5A CN202010208637A CN111443909B CN 111443909 B CN111443909 B CN 111443909B CN 202010208637 A CN202010208637 A CN 202010208637A CN 111443909 B CN111443909 B CN 111443909B
- Authority
- CN
- China
- Prior art keywords
- markup language
- language file
- page
- script
- display template
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/38—Creation or generation of source code for implementing user interfaces
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Information Transfer Between Computers (AREA)
Abstract
本公开的实施例公开了用于生成页面的方法及装置。该方法的一具体实施方式包括:查询待生成页面的标记语言文件;通过前端框架构建对应上述标记语言文件的页面显示模板;建立上述页面显示模板与上述标记语言文件的对应关系;响应于检测到对应上述页面显示模板的页面生成指令,通过上述页面显示模板生成目标页面。该实施方式提高了标记语言文件与前端框架的兼容性。
Embodiments of the present disclosure disclose methods and devices for generating pages. A specific implementation of the method includes: querying the markup language file of the page to be generated; constructing a page display template corresponding to the above markup language file through a front-end framework; establishing a corresponding relationship between the above page display template and the above markup language file; responding to detecting Corresponding to the page generation instructions of the above-mentioned page display template, the target page is generated through the above-mentioned page display template. This implementation improves the compatibility of markup language files with front-end frameworks.
Description
技术领域Technical field
本公开的实施例涉及计算机技术领域,具体涉及用于生成页面的方法及装置。Embodiments of the present disclosure relate to the field of computer technology, and specifically to methods and devices for generating pages.
背景技术Background technique
Markdown属于标记语言的一种。Markdown可以作为一种便利的文档编写语言,因此,Markdown需要与一些前端框架(例如可以是Vue、React、Angular、QucikUI、Layui)进行结合。通过前端框架可以将Markdown文件渲染在页面中,以提高生成页面的效率。Markdown is a type of markup language. Markdown can be used as a convenient document writing language. Therefore, Markdown needs to be combined with some front-end frameworks (for example, Vue, React, Angular, QucikUI, Layui). Markdown files can be rendered in the page through the front-end framework to improve the efficiency of page generation.
发明内容Contents of the invention
本公开的实施例提出了用于生成页面的方法及装置。Embodiments of the present disclosure provide methods and devices for generating pages.
第一方面,本公开的实施例提供了一种用于生成页面的方法,该方法包括:查询待生成页面的标记语言文件;通过前端框架构建对应上述标记语言文件的页面显示模板,上述页面显示模板用于在上述待生成页面中显示上述标记语言文件的内容;建立上述页面显示模板与上述标记语言文件的对应关系;响应于检测到对应上述页面显示模板的页面生成指令,通过上述页面显示模板生成目标页面,上述目标页面包含上述标记语言文件的内容。In a first aspect, embodiments of the present disclosure provide a method for generating a page. The method includes: querying the markup language file of the page to be generated; constructing a page display template corresponding to the above markup language file through a front-end framework, and the above page display The template is used to display the content of the above-mentioned markup language file in the above-mentioned page to be generated; establish a corresponding relationship between the above-mentioned page display template and the above-mentioned markup language file; in response to detecting the page generation instruction corresponding to the above-mentioned page display template, display the template through the above-mentioned page Generate a target page that contains the content of the above markup language file.
第二方面,本公开的实施例提供了一种用于生成页面的装置,该装置包括:文件查询单元,被配置成查询待生成页面的标记语言文件;模板构建单元,被配置成通过前端框架构建对应上述标记语言文件的页面显示模板,上述页面显示模板用于在上述待生成页面中显示上述标记语言文件的内容;对应关系建立单元,被配置成建立上述页面显示模板与上述标记语言文件的对应关系;页面生成单元,响应于检测到对应上述页面显示模板的页面生成指令,被配置成通过上述页面显示模板生成目标页面,上述目标页面包含上述标记语言文件的内容。In a second aspect, an embodiment of the present disclosure provides a device for generating a page. The device includes: a file query unit configured to query the markup language file of the page to be generated; a template building unit configured to use the front-end framework to Construct a page display template corresponding to the above-mentioned markup language file. The above-mentioned page display template is used to display the content of the above-mentioned markup language file in the above-mentioned page to be generated; the correspondence relationship establishment unit is configured to establish a relationship between the above-mentioned page display template and the above-mentioned markup language file. Correspondence; the page generation unit, in response to detecting the page generation instruction corresponding to the above-mentioned page display template, is configured to generate a target page through the above-mentioned page display template, and the above-mentioned target page contains the content of the above-mentioned markup language file.
第三方面,本公开的实施例提供了一种电子设备,包括:一个或多个处理器;存储器,其上存储有一个或多个程序,当上述一个或多个程序被上述一个或多个处理器执行时,使得上述一个或多个处理器执行上述第一方面的用于生成页面的方法。In a third aspect, embodiments of the present disclosure provide an electronic device, including: one or more processors; and a memory on which one or more programs are stored. When the above one or more programs are processed by the above one or more When the processor executes, the one or more processors are caused to execute the method for generating a page in the first aspect.
第四方面,本公开的实施例提供了一种计算机可读介质,其上存储有计算机程序,其特征在于,该程序被处理器执行时实现上述第一方面的用于生成页面的方法。In a fourth aspect, embodiments of the present disclosure provide a computer-readable medium on which a computer program is stored, characterized in that when the program is executed by a processor, the method for generating a page in the first aspect is implemented.
本公开的实施例提供的用于生成页面的方法及装置,首先查询待生成页面的标记语言文件;然后通过前端框架构建对应上述标记语言文件的页面显示模板,提高标记语言文件与前端框架的兼容性;之后建立上述页面显示模板与上述标记语言文件的对应关系,提高调用标记语言文件的效率;最后在检测到对应上述页面显示模板的页面生成指令时,通过上述页面显示模板生成目标页面,提高了标记语言文件与前端框架的兼容性,提高了生成目标页面的效率。The method and device for generating a page provided by embodiments of the present disclosure first query the markup language file of the page to be generated; and then build a page display template corresponding to the above markup language file through the front-end framework to improve the compatibility between the markup language file and the front-end framework. property; then establish the corresponding relationship between the above-mentioned page display template and the above-mentioned markup language file to improve the efficiency of calling the markup language file; finally, when the page generation instruction corresponding to the above-mentioned page display template is detected, the target page is generated through the above-mentioned page display template to improve It improves the compatibility between markup language files and front-end frameworks and improves the efficiency of generating target pages.
附图说明Description of the drawings
通过阅读参照以下附图所作的对非限制性实施例所作的详细描述,本公开的其它特征、目的和优点将会变得更明显:Other features, objects and advantages of the present disclosure will become more apparent upon reading the detailed description of the non-limiting embodiments with reference to the following drawings:
图1是本公开的一个实施例可以应用于其中的示例性系统架构图;Figure 1 is an exemplary system architecture diagram in which an embodiment of the present disclosure may be applied;
图2是根据本公开的用于生成页面的方法的一个实施例的流程图;Figure 2 is a flowchart of one embodiment of a method for generating a page according to the present disclosure;
图3是根据本公开的用于生成页面的方法的另一个实施例的流程图;3 is a flowchart of another embodiment of a method for generating a page according to the present disclosure;
图4是根据本公开的用于生成页面的方法的一个应用场景的示意图;Figure 4 is a schematic diagram of an application scenario of the method for generating pages according to the present disclosure;
图5是根据本公开的用于生成页面的装置的一个实施例的结构示意图;Figure 5 is a schematic structural diagram of an embodiment of a device for generating pages according to the present disclosure;
图6是适于用来实现本公开的实施例的电子设备结构示意图。FIG. 6 is a schematic structural diagram of an electronic device suitable for implementing embodiments of the present disclosure.
具体实施方式Detailed ways
下面结合附图和实施例对本公开作进一步的详细说明。可以理解的是,此处所描述的具体实施例仅仅用于解释相关发明,而非对该发明的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与有关发明相关的部分。The present disclosure will be further described in detail below in conjunction with the accompanying drawings and examples. It can be understood that the specific embodiments described here are only used to explain the relevant invention, but not to limit the invention. It should also be noted that, for convenience of description, only the parts related to the invention are shown in the drawings.
需要说明的是,在不冲突的情况下,本公开中的实施例及实施例中的特征可以相互组合。下面将参考附图并结合实施例来详细说明本公开。It should be noted that, as long as there is no conflict, the embodiments and features in the embodiments of the present disclosure can be combined with each other. The present disclosure will be described in detail below in conjunction with embodiments with reference to the accompanying drawings.
图1示出了可以应用本公开的实施例的用于生成页面的方法或用于生成页面的装置的示例性系统架构100。FIG. 1 illustrates an exemplary system architecture 100 to which a method for generating a page or an apparatus for generating a page may apply embodiments of the present disclosure.
如图1所示,系统架构100可以包括终端设备101、102、103,网络104和服务器105。网络104用以在终端设备101、102、103和服务器105之间提供通信链路的介质。网络104可以包括各种连接类型,例如有线、无线通信链路或者光纤电缆等等。As shown in Figure 1, the system architecture 100 may include terminal devices 101, 102, 103, a network 104 and a server 105. The network 104 is a medium used to provide communication links between the terminal devices 101, 102, 103 and the server 105. Network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
终端设备101、102、103通过网络104与服务器105交互,以接收或发送消息等。终端设备101、102、103上可以安装有各种页面显示应用,例如网页浏览器应用、购物类应用、搜索类应用、即时通信工具、邮箱客户端、社交平台软件等。The terminal devices 101, 102, 103 interact with the server 105 through the network 104 to receive or send messages, etc. Various page display applications can be installed on the terminal devices 101, 102, and 103, such as web browser applications, shopping applications, search applications, instant messaging tools, email clients, social platform software, etc.
终端设备101、102、103可以是硬件,也可以是软件。当终端设备101、102、103为硬件时,可以是具有显示屏并且支持页面浏览的各种电子设备,包括但不限于智能手机、平板电脑、电子书阅读器、膝上型便携计算机和台式计算机等等。当终端设备101、102、103为软件时,可以安装在上述所列举的电子设备中。其可以实现成多个软件或软件模块(例如用来提供分布式服务),也可以实现成单个软件或软件模块,在此不做具体限定。The terminal devices 101, 102, and 103 may be hardware or software. When the terminal devices 101, 102, and 103 are hardware, they may be various electronic devices with display screens and supporting page browsing, including but not limited to smartphones, tablet computers, e-book readers, laptop computers, and desktop computers. etc. When the terminal devices 101, 102, and 103 are software, they can be installed in the electronic devices listed above. It can be implemented as multiple software or software modules (for example, used to provide distributed services), or it can be implemented as a single software or software module, which is not specifically limited here.
服务器105可以是提供各种服务的服务器,例如向终端设备101、102、103提供显示页面的后台网页服务器。后台网页服务器可以根据终端设备101、102、103各自不同的前端框架生成对应的显示页面,并将处理结果(例如网页页面)反馈给终端设备101、102、103,以在终端设备101、102、103上进行显示。The server 105 may be a server that provides various services, such as a background web server that provides display pages to the terminal devices 101, 102, and 103. The background web server can generate corresponding display pages according to the different front-end frameworks of the terminal devices 101, 102, and 103, and feed back the processing results (such as web pages) to the terminal devices 101, 102, and 103, so that the terminal devices 101, 102, and 103 is displayed.
需要说明的是,本公开的实施例所提供的用于生成页面的方法一般由服务器105执行,相应地,用于生成页面的装置一般设置于服务器105中。It should be noted that the method for generating a page provided by the embodiment of the present disclosure is generally executed by the server 105. Correspondingly, the device for generating the page is generally provided in the server 105.
需要说明的是,服务器可以是硬件,也可以是软件。当服务器为硬件时,可以实现成多个服务器组成的分布式服务器集群,也可以实现成单个服务器。当服务器为软件时,可以实现成多个软件或软件模块(例如用来提供分布式服务),也可以实现成单个软件或软件模块,在此不做具体限定。It should be noted that the server can be hardware or software. When the server is hardware, it can be implemented as a distributed server cluster composed of multiple servers or as a single server. When the server is software, it can be implemented as multiple software or software modules (for example, used to provide distributed services), or it can be implemented as a single software or software module, which is not specifically limited here.
应该理解,图1中的终端设备、网络和服务器的数目仅仅是示意性的。根据实现需要,可以具有任意数目的终端设备、网络和服务器。It should be understood that the number of terminal devices, networks and servers in Figure 1 is only illustrative. Depending on implementation needs, there can be any number of end devices, networks, and servers.
继续参考图2,示出了根据本公开的用于生成页面的方法的一个实施例的流程200。该用于生成页面的方法包括以下步骤:Continuing with reference to FIG. 2 , a process 200 is shown for one embodiment of a method for generating a page in accordance with the present disclosure. The method for generating pages includes the following steps:
步骤201,查询待生成页面的标记语言文件。Step 201: Query the markup language file of the page to be generated.
在本实施例中,用于生成页面的方法的执行主体(例如图1所示的服务器105)可以通过有线连接方式或者无线连接方式获取标记语言文件。其中,标记语言是一种将文本以及文本相关的其他信息结合起来,展现出关于文档结构和数据处理细节的电脑文字编码。与文本相关的其他信息(包括文本的结构和表示信息等)与原来的文本结合在一起,但是使用标记进行标识。标记语言文件即为通过标记语言构成的文件。需要指出的是,上述无线连接方式可以包括但不限于3G/4G连接、WiFi连接、蓝牙连接、WiMAX连接、Zigbee连接、UWB(Ultra Wideband)连接、以及其他现在已知或将来开发的无线连接方式。In this embodiment, the execution subject of the method for generating a page (for example, the server 105 shown in FIG. 1 ) can obtain the markup language file through a wired connection or a wireless connection. Among them, markup language is a computer text encoding that combines text and other information related to the text to show details about the document structure and data processing. Other information related to the text (including the structure and presentation information of the text, etc.) are combined with the original text, but are identified using markers. A markup language file is a file composed of markup language. It should be noted that the above wireless connection methods may include but are not limited to 3G/4G connection, WiFi connection, Bluetooth connection, WiMAX connection, Zigbee connection, UWB (Ultra Wideband) connection, and other wireless connection methods now known or developed in the future. .
标记语言具有语法简单、兼容性强、导出方便、跨平台排版统一等诸多优点。在将标记语言文件应用到页面(例如可以是生成浏览器网页)制作时,通常需要开发对应的插件,以使得标记语言文件应用到开发页面的前端框架中。由于前端框架在数据类型、数据处理架构等方面存在不同,这就使得插件需要针对性地对前端框架进行开发。插件不能在不同的前端框架复用,限制了标记语言的应用。Markup language has many advantages such as simple syntax, strong compatibility, convenient export, and unified cross-platform typesetting. When applying a markup language file to a page (for example, to generate a browser webpage), it is usually necessary to develop a corresponding plug-in so that the markup language file can be applied to the front-end framework of the developed page. Since front-end frameworks are different in terms of data types, data processing architecture, etc., this requires plug-ins to develop front-end frameworks in a targeted manner. Plug-ins cannot be reused in different front-end frameworks, limiting the application of markup languages.
本申请的执行主体在生成页面时,可以首先查询待生成页面的标记语言文件。在确定待生成页面的内容后,执行主体可以查找对应待生成页面的标记语言文件。When the execution subject of this application generates a page, it can first query the markup language file of the page to be generated. After determining the content of the page to be generated, the execution subject can search for the markup language file corresponding to the page to be generated.
步骤202,通过前端框架构建对应上述标记语言文件的页面显示模板。Step 202: Construct a page display template corresponding to the above markup language file through the front-end framework.
通常,在生成页面时,都需要选择对应的前端框架生成对应的页面。因此,执行主体可以构建对应上述标记语言文件的页面显示模板,以使得标记语言文件通过该页面显示模板生成页面,提高了标记语言文件与前端框架的兼容性。Usually, when generating a page, you need to select the corresponding front-end framework to generate the corresponding page. Therefore, the execution subject can construct a page display template corresponding to the above markup language file, so that the markup language file generates a page through the page display template, thereby improving the compatibility between the markup language file and the front-end framework.
步骤203,建立上述页面显示模板与上述标记语言文件的对应关系。Step 203: Establish a corresponding relationship between the above-mentioned page display template and the above-mentioned markup language file.
构建好页面显示模板后,执行主体可以建立页面显示模板与上述标记语言文件的对应关系。对应关系可以是标记语言文件在执行主体或其他设备上的信息路径。如此,在通过页面显示模板生成页面时,可以直接调用对应的标记语言文件。After the page display template is constructed, the execution subject can establish the corresponding relationship between the page display template and the above markup language file. The corresponding relationship can be the information path of the markup language file on the execution subject or other devices. In this way, when generating a page through the page display template, the corresponding markup language file can be directly called.
步骤204,响应于检测到对应上述页面显示模板的页面生成指令,通过上述页面显示模板生成目标页面。Step 204: In response to detecting the page generation instruction corresponding to the above page display template, generate the target page through the above page display template.
当检测到页面显示模板的页面生成指令时,执行主体可以通过页面显示模板生成目标页面。其中,目标页面包含了上述标记语言文件的内容。如此,避免了通过开发插件的方式利用标记语言文件生成页面,提高了标记语言文件的通用性。When the page generation instruction of the page display template is detected, the execution subject can generate the target page through the page display template. Among them, the target page contains the content of the above markup language file. In this way, it is avoided to use markup language files to generate pages by developing plug-ins, and the versatility of markup language files is improved.
继续参考图3,示出了根据本公开的用于生成页面的方法的一个实施例的流程300。该用于生成页面的方法包括以下步骤:Continuing with reference to FIG. 3 , a process 300 is shown for one embodiment of a method for generating a page in accordance with the present disclosure. The method for generating pages includes the following steps:
步骤301,查询待生成页面的标记语言文件。Step 301: Query the markup language file of the page to be generated.
步骤301的内容与步骤201的内容相同,此处不再一一赘述。The content of step 301 is the same as that of step 201 and will not be described again here.
步骤302,查询前端框架的类型信息。Step 302: Query the type information of the front-end framework.
不同的前端框架,在构成页面的方式、数据处理等多个方面存在差别。执行主体可以首先查看对应待生成页面的前端框架的类型信息。类型信息可以是Vue、React、Angular、QucikUI、Layui等。Different front-end frameworks differ in many aspects such as the way they construct pages and data processing. The execution subject can first check the type information of the front-end framework corresponding to the page to be generated. Type information can be Vue, React, Angular, QucikUI, Layui, etc.
步骤303,根据上述类型信息构建上述前端框架的页面显示模板。Step 303: Construct a page display template of the above-mentioned front-end framework based on the above-mentioned type information.
确定了类型信息后,执行主体可以控制对应的前端框架生成页面显示模板。例如,执行主体可以查询到两个设备的待生成页面。第一个设备的待生成页面用于生成笔记本电脑上的页面,第二个设备的待生成页面用于生成智能手机上的页面,并且第一个设备和第二个设备生成页面的前端框架也不同。此时,执行主体就需要根据前端框架的类型信息构建对应前端框架的页面显示模板,有利于提高标记语言文件与前端框架的兼容性。After determining the type information, the execution subject can control the corresponding front-end framework to generate a page display template. For example, the execution subject can query the pages to be generated for two devices. The page to be generated for the first device is used to generate the page on the laptop, the page to be generated for the second device is used to generate the page on the smartphone, and the front-end frameworks for the pages generated by the first device and the second device are also different. At this time, the execution subject needs to construct a page display template corresponding to the front-end framework based on the type information of the front-end framework, which is beneficial to improving the compatibility between the markup language file and the front-end framework.
步骤304,将上述标记语言文件转化为超文本标记语言文件。Step 304: Convert the above markup language file into a hypertext markup language file.
为了提高标记语言文件对前端框架的兼容性,执行主体还可以将标记语言文件转化为超文本标记语言文件。超文本标记语言是标准通用标记语言下的一个应用,也是一种规范,一种标准,它通过标记符号来标记要显示的网页中的各个部分。In order to improve the compatibility of the markup language file with the front-end framework, the execution subject can also convert the markup language file into a hypertext markup language file. Hypertext Markup Language is an application under the Standard Universal Markup Language. It is also a specification and a standard. It uses markup symbols to mark various parts of the web page to be displayed.
在本实施例的一些可选的实现方式中,上述将上述标记语言文件转化为超文本标记语言文件,可以包括以下步骤:In some optional implementations of this embodiment, converting the above markup language file into a hypertext markup language file may include the following steps:
第一步,响应于上述标记语言文件中存在脚本调用信息,获取上述脚本调用信息的链接信息。In the first step, in response to the existence of script calling information in the above markup language file, obtain the link information of the above script calling information.
标记语言文件可以是文字、图片或视频等信息,还可以调用其他相关的信息。当标记语言文件中存在脚本调用信息时,执行主体可以获取上述脚本调用信息的链接信息。其中,上述脚本调用信息可以用于调用目标脚本。相应的,上述链接信息就与上述目标脚本对应。Markup language files can be information such as text, pictures or videos, and can also call other related information. When script calling information exists in the markup language file, the execution subject can obtain the link information of the above script calling information. The above script calling information can be used to call the target script. Correspondingly, the above link information corresponds to the above target script.
第二步,将上述链接信息对应的上述目标脚本导入上述标记语言文件。The second step is to import the above target script corresponding to the above link information into the above markup language file.
为了提高数据处理速度,执行主体可以将链接信息对应的上述目标脚本导入上述标记语言文件。例如,目标脚本可以保存在标记语言文件的正文内容之前或之后。当标记语言文件需要对应的目标脚本时,可以直接从正文内容之前或之后获取目标脚本。In order to improve the data processing speed, the execution subject can import the above-mentioned target script corresponding to the link information into the above-mentioned markup language file. For example, the target script can be saved before or after the body content of the markup language file. When a markup language file requires a corresponding target script, the target script can be obtained directly from before or after the body content.
第三步,将导入上述目标脚本后的标记语言文件转化为超文本标记语言文件。The third step is to convert the markup language file imported into the above target script into a hypertext markup language file.
导入上述目标脚本后,执行主体可以将标记语言文件转化为超文本标记语言文件。执行主体可以直接根据数据类型的不同将标记语言文件转化为超文本标记语言文件,也可以通过数据转换工具将标记语言文件转化为超文本标记语言文件,具体视实际需要而定。After importing the above target script, the execution subject can convert the markup language file into a hypertext markup language file. The execution subject can directly convert the markup language file into a hypertext markup language file according to different data types, or it can convert the markup language file into a hypertext markup language file through a data conversion tool, depending on actual needs.
在本实施例的一些可选的实现方式中,上述将上述标记语言文件转化为超文本标记语言文件,还可以包括:响应于上述标记语言文件中存在多条脚本调用信息,对上述多条脚本调用信息对应的链接信息进行合并。In some optional implementations of this embodiment, the above-mentioned conversion of the above-mentioned markup language file into a hypertext markup language file may also include: in response to the presence of multiple script call information in the above-mentioned markup language file, converting the above-mentioned multiple scripts The link information corresponding to the call information is merged.
实际中还存在一种情况,标记语言文件可能多处调用脚本。通常的做法是:每遇到脚本调用信息,执行主体都执行一个调用脚本操作。为了提高执行主体调用脚本的效率,执行主体可以首先获取标记语言文件包含的多条脚本调用信息,并对多条脚本调用信息中的每一条脚本调用信息进行查询。当多条脚本调用信息中存在对相同脚本调用的情况时,执行主体可以对链接信息进行合并。如此,执行主体可以减少通过链接信息调用脚本时的数据处理量,提高调用脚本的速度。In practice, there is also a situation where the markup language file may call scripts in multiple places. The usual approach is: every time it encounters script calling information, the execution subject performs a calling script operation. In order to improve the efficiency of the execution subject calling scripts, the execution subject can first obtain multiple pieces of script calling information contained in the markup language file, and query each piece of script calling information in the multiple pieces of script calling information. When multiple pieces of script call information call the same script, the execution subject can merge the link information. In this way, the execution subject can reduce the amount of data processing when calling the script through the link information and increase the speed of calling the script.
步骤305,建立上述页面显示模板与上述超文本标记语言文件的调用关系。Step 305: Establish a calling relationship between the above page display template and the above hypertext markup language file.
执行主体可以建立上述页面显示模板与超文本标记语言文件的调用关系。如此,在通过页面显示模板生成页面时,可以将超文本标记语言文件的内容作为页面的内容,提高了生成页面的效率。The execution subject can establish the calling relationship between the above page display template and the hypertext markup language file. In this way, when generating a page through the page display template, the content of the hypertext markup language file can be used as the content of the page, which improves the efficiency of generating the page.
步骤306,响应于检测到对应上述页面显示模板的页面生成指令,通过上述页面显示模板生成目标页面。Step 306: In response to detecting the page generation instruction corresponding to the above page display template, generate the target page through the above page display template.
步骤306的内容与步骤204的内容相同,此处不再一一赘述。The content of step 306 is the same as that of step 204, and will not be described again here.
继续参见图4,图4是根据本实施例的用于生成页面的方法的应用场景的一个示意图。服务器105可以为终端设备102和终端设备103生成对应的目标页面,终端设备102的目标页面与终端设备103的目标页面可以相同。其中,终端设备102可以为智能手机,终端设备103可以是笔记本电脑。服务器105可以采用不同的前端框架分别为终端设备102和终端设备103生成页面。服务器105首先查询生成页面所需要的标记语言文件。然后,服务器105根据终端设备102和终端设备103各自的前端框架分别生成对应的页面显示模板,并建立标记语言文件与每个前端框架的对应关系。当服务器105检测到对应的页面显示模板的页面生成指令时,可以控制对应的页面显示模板生成目标页面。如此,提高了标记语言文件与不同前端框架的兼容性,提高了生成目标页面的效率。Continuing to refer to FIG. 4 , FIG. 4 is a schematic diagram of an application scenario of the method for generating a page according to this embodiment. The server 105 can generate corresponding target pages for the terminal device 102 and the terminal device 103, and the target page of the terminal device 102 and the target page of the terminal device 103 can be the same. The terminal device 102 may be a smart phone, and the terminal device 103 may be a laptop computer. The server 105 may use different front-end frameworks to generate pages for the terminal device 102 and the terminal device 103 respectively. The server 105 first queries the markup language files required to generate the page. Then, the server 105 generates corresponding page display templates according to the respective front-end frames of the terminal device 102 and the terminal device 103, and establishes a corresponding relationship between the markup language file and each front-end frame. When the server 105 detects the page generation instruction of the corresponding page display template, it can control the corresponding page display template to generate the target page. In this way, the compatibility of markup language files with different front-end frameworks is improved, and the efficiency of generating target pages is improved.
本公开的上述实施例提供的方法,首先查询待生成页面的标记语言文件;然后通过前端框架构建对应上述标记语言文件的页面显示模板,提高标记语言文件与前端框架的兼容性;之后建立上述页面显示模板与上述标记语言文件的对应关系,提高调用标记语言文件的效率;最后在检测到对应上述页面显示模板的页面生成指令时,通过上述页面显示模板生成目标页面,提高了标记语言文件与前端框架的兼容性,提高了生成目标页面的效率。The method provided by the above embodiments of the present disclosure first queries the markup language file of the page to be generated; then builds a page display template corresponding to the above markup language file through the front-end framework to improve the compatibility between the markup language file and the front-end framework; and then builds the above page The corresponding relationship between the display template and the above-mentioned markup language file improves the efficiency of calling the markup language file; finally, when the page generation instruction corresponding to the above-mentioned page display template is detected, the target page is generated through the above-mentioned page display template, which improves the connection between the markup language file and the front-end. The compatibility of the framework improves the efficiency of generating target pages.
进一步参考图5,作为对上述各图所示方法的实现,本公开提供了一种用于生成页面的装置的一个实施例,该装置实施例与图2所示的方法实施例相对应,该装置具体可以应用于各种电子设备中。With further reference to FIG. 5 , as an implementation of the methods shown in the above figures, the present disclosure provides an embodiment of a device for generating a page. The device embodiment corresponds to the method embodiment shown in FIG. 2 . The device can be applied in various electronic devices.
如图5所示,本实施例的用于生成页面的装置500可以包括:文件查询单元501、模板构建单元502、对应关系建立单元503和页面生成单元504。其中,文件查询单元501被配置成查询待生成页面的标记语言文件;模板构建单元502被配置成通过前端框架构建对应上述标记语言文件的页面显示模板,上述页面显示模板用于在上述待生成页面中显示上述标记语言文件的内容;对应关系建立单元503被配置成建立上述页面显示模板与上述标记语言文件的对应关系;页面生成单元504,响应于检测到对应上述页面显示模板的页面生成指令,被配置成通过上述页面显示模板生成目标页面,上述目标页面包含上述标记语言文件的内容。As shown in FIG. 5 , the device 500 for generating a page in this embodiment may include: a file query unit 501 , a template construction unit 502 , a correspondence relationship establishment unit 503 and a page generation unit 504 . Among them, the file query unit 501 is configured to query the markup language file of the page to be generated; the template building unit 502 is configured to build a page display template corresponding to the above markup language file through the front-end framework, and the above page display template is used in the above to be generated page. The content of the above-mentioned markup language file is displayed in; the correspondence establishment unit 503 is configured to establish a correspondence between the above-mentioned page display template and the above-mentioned markup language file; the page generation unit 504, in response to detecting the page generation instruction corresponding to the above-mentioned page display template, It is configured to generate a target page through the above page display template, and the above target page contains the content of the above markup language file.
在本实施例的一些可选的实现方式中,上述模板构建单元502可以包括:类型信息查询子单元(图中未视出)和模板构建子单元(图中未视出)。其中,类型信息查询子单元被配置成查询上述前端框架的类型信息;模板构建子单元被配置成根据上述类型信息构建上述前端框架的页面显示模板。In some optional implementations of this embodiment, the above-mentioned template construction unit 502 may include: a type information query subunit (not shown in the figure) and a template construction subunit (not shown in the figure). The type information query sub-unit is configured to query the type information of the front-end framework; the template building sub-unit is configured to build a page display template of the front-end framework based on the type information.
在本实施例的一些可选的实现方式中,上述对应关系建立单元503可以包括:文件转换子单元(图中未视出)和调用关系建立子单元(图中未视出)。其中,文件转换子单元被配置成将上述标记语言文件转化为超文本标记语言文件;调用关系建立子单元被配置成建立上述页面显示模板与上述超文本标记语言文件的调用关系。In some optional implementations of this embodiment, the above-mentioned correspondence relationship establishment unit 503 may include: a file conversion subunit (not shown in the figure) and a calling relationship establishment subunit (not shown in the figure). Wherein, the file conversion subunit is configured to convert the above markup language file into a hypertext markup language file; the calling relationship establishing subunit is configured to establish a calling relationship between the above page display template and the above hypertext markup language file.
在本实施例的一些可选的实现方式中,上述文件转换子单元可以包括:链接信息获取模块(图中未视出)、文件导入模块(图中未视出)和文件转换模块(图中未视出)。其中,链接信息获取模块,响应于上述标记语言文件中存在脚本调用信息,被配置成获取上述脚本调用信息的链接信息,上述脚本调用信息用于调用目标脚本,上述链接信息与上述目标脚本对应;文件导入模块被配置成将上述链接信息对应的上述目标脚本导入上述标记语言文件;文件转换模块被配置成将导入上述目标脚本后的标记语言文件转化为超文本标记语言文件。In some optional implementations of this embodiment, the above-mentioned file conversion subunit may include: a link information acquisition module (not shown in the figure), a file import module (not shown in the figure), and a file conversion module (not shown in the figure). not shown). Wherein, the link information acquisition module, in response to the presence of script call information in the above-mentioned markup language file, is configured to obtain the link information of the above-mentioned script call information, the above-mentioned script call information is used to call the target script, and the above-mentioned link information corresponds to the above-mentioned target script; The file import module is configured to import the target script corresponding to the link information into the markup language file; the file conversion module is configured to convert the markup language file after importing the target script into a hypertext markup language file.
在本实施例的一些可选的实现方式中,上述文件转换子单元可以包括:链接信息合并模块(图中未视出),响应于上述标记语言文件中存在多条脚本调用信息,被配置成对上述多条脚本调用信息对应的链接信息进行合并。In some optional implementations of this embodiment, the above-mentioned file conversion subunit may include: a link information merging module (not shown in the figure), which is configured to respond to the presence of multiple pieces of script call information in the above-mentioned markup language file. Merge the link information corresponding to the above multiple pieces of script call information.
本实施例还提供了一种电子设备,包括:一个或多个处理器;存储器,其上存储有一个或多个程序,当上述一个或多个程序被上述一个或多个处理器执行时,使得上述一个或多个处理器执行上述的用于生成页面的方法。This embodiment also provides an electronic device, including: one or more processors; and a memory on which one or more programs are stored. When the one or more programs are executed by the one or more processors, The above one or more processors are caused to execute the above method for generating a page.
本实施例还提供了一种计算机可读介质,其上存储有计算机程序,该程序被处理器执行时实现上述的用于生成页面的方法。This embodiment also provides a computer-readable medium on which a computer program is stored. When the program is executed by a processor, the above-mentioned method for generating a page is implemented.
下面参考图6,其示出了适于用来实现本公开的实施例的电子设备(例如,图1中的服务器105)的计算机系统600的结构示意图。图6示出的电子设备仅仅是一个示例,不应对本公开的实施例的功能和使用范围带来任何限制。Referring now to FIG. 6 , a schematic structural diagram of a computer system 600 suitable for implementing an electronic device (eg, server 105 in FIG. 1 ) is shown. The electronic device shown in FIG. 6 is only an example and should not bring any limitations to the functions and scope of use of the embodiments of the present disclosure.
如图6所示,电子设备600可以包括处理装置(例如中央处理器、图形处理器等)601,其可以根据存储在只读存储器(ROM)602中的程序或者从存储装置608加载到随机访问存储器(RAM)603中的程序而执行各种适当的动作和处理。在RAM 603中,还存储有电子设备600操作所需的各种程序和数据。处理装置601、ROM 602以及RAM 603通过总线604彼此相连。输入/输出(I/O)接口605也连接至总线604。As shown in FIG. 6, the electronic device 600 may include a processing device (eg, central processing unit, graphics processor, etc.) 601, which may be loaded into a random access device according to a program stored in a read-only memory (ROM) 602 or from a storage device 608. The program in the memory (RAM) 603 executes various appropriate actions and processes. In the RAM 603, various programs and data required for the operation of the electronic device 600 are also stored. The processing device 601, ROM 602 and RAM 603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
通常,以下装置可以连接至I/O接口605:包括例如触摸屏、触摸板、键盘、鼠标、摄像头、麦克风、加速度计、陀螺仪等的输入装置606;包括例如液晶显示器(LCD)、扬声器、振动器等的输出装置607;包括例如磁带、硬盘等的存储装置608;以及通信装置609。通信装置609可以允许电子设备600与其他设备进行无线或有线通信以交换数据。虽然图6示出了具有各种装置的电子设备600,但是应理解的是,并不要求实施或具备所有示出的装置。可以替代地实施或具备更多或更少的装置。图6中示出的每个方框可以代表一个装置,也可以根据需要代表多个装置。Generally, the following devices may be connected to the I/O interface 605: input devices 606 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; including, for example, a liquid crystal display (LCD), speakers, vibration An output device 607 such as a computer; a storage device 608 including a magnetic tape, a hard disk, etc.; and a communication device 609. Communication device 609 may allow electronic device 600 to communicate wirelessly or wiredly with other devices to exchange data. Although FIG. 6 illustrates electronic device 600 with various means, it should be understood that implementation or availability of all illustrated means is not required. More or fewer means may alternatively be implemented or provided. Each block shown in Figure 6 may represent one device, or may represent multiple devices as needed.
特别地,根据本公开的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本公开的实施例包括一种计算机程序产品,其包括承载在计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信装置609从网络上被下载和安装,或者从存储装置608被安装,或者从ROM 602被安装。在该计算机程序被处理装置601执行时,执行本公开的实施例的方法中限定的上述功能。In particular, according to embodiments of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product including a computer program carried on a computer-readable medium, the computer program containing program code for performing the method illustrated in the flowchart. In such embodiments, the computer program may be downloaded and installed from the network via communication device 609, or from storage device 608, or from ROM 602. When the computer program is executed by the processing device 601, the above-described functions defined in the method of the embodiment of the present disclosure are performed.
需要说明的是,本公开的实施例上述的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本公开的实施例中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本公开的实施例中,计算机可读信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读信号介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:电线、光缆、RF(射频)等等,或者上述的任意合适的组合。It should be noted that the computer-readable medium mentioned above in the embodiments of the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the above two. The computer-readable storage medium may be, for example, but is not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus or device, or any combination thereof. More specific examples of computer readable storage media may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard drive, random access memory (RAM), read only memory (ROM), removable Programmed read-only memory (EPROM or flash memory), fiber optics, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above. In embodiments of the present disclosure, a computer-readable storage medium may be any tangible medium that contains or stores a program for use by or in connection with an instruction execution system, apparatus, or device. In embodiments of the present disclosure, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, in which computer-readable program code is carried. Such propagated data signals may take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device . Program code embodied on a computer-readable medium may be transmitted using any suitable medium, including but not limited to: wire, optical cable, RF (radio frequency), etc., or any suitable combination of the above.
上述计算机可读介质可以是上述电子设备中所包含的;也可以是单独存在,而未装配入该电子设备中。上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被该电子设备执行时,使得该电子设备:查询待生成页面的标记语言文件;通过前端框架构建对应上述标记语言文件的页面显示模板,上述页面显示模板用于在上述待生成页面中显示上述标记语言文件的内容;建立上述页面显示模板与上述标记语言文件的对应关系;响应于检测到对应上述页面显示模板的页面生成指令,通过上述页面显示模板生成目标页面,上述目标页面包含上述标记语言文件的内容。The above-mentioned computer-readable medium may be included in the above-mentioned electronic device; it may also exist independently without being assembled into the electronic device. The above-mentioned computer-readable medium carries one or more programs. When the above-mentioned one or more programs are executed by the electronic device, the electronic device: queries the markup language file of the page to be generated; builds the corresponding markup language file through the front-end framework. The page display template is used to display the content of the above-mentioned markup language file in the above-mentioned page to be generated; establish the corresponding relationship between the above-mentioned page display template and the above-mentioned markup language file; in response to detecting the page corresponding to the above-mentioned page display template Generate instructions to generate a target page through the above page display template, and the above target page contains the content of the above markup language file.
可以以一种或多种程序设计语言或其组合来编写用于执行本公开的实施例的操作的计算机程序代码,上述程序设计语言包括面向对象的程序设计语言—诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络——包括局域网(LAN)或广域网(WAN)—连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。Computer program code for performing operations of embodiments of the present disclosure may be written in one or more programming languages, including object-oriented programming languages—such as Java, Smalltalk, C++, and Includes conventional procedural programming languages—such as "C" or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In situations involving remote computers, the remote computer can be connected to the user's computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (such as an Internet service provider through Internet connection).
附图中的流程图和框图,图示了按照本公开的各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,该模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products in accordance with various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagram may represent a module, segment, or portion of code that contains one or more logic functions that implement the specified executable instructions. It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown one after another may actually execute substantially in parallel, or they may sometimes execute in the reverse order, depending on the functionality involved. It will also be noted that each block of the block diagram and/or flowchart illustration, and combinations of blocks in the block diagram and/or flowchart illustration, can be implemented by special purpose hardware-based systems that perform the specified functions or operations. , or can be implemented using a combination of specialized hardware and computer instructions.
描述于本公开的实施例中所涉及到的单元可以通过软件的方式实现,也可以通过硬件的方式来实现。所描述的单元也可以设置在处理器中,例如,可以描述为:一种处理器包括文件查询单元、模板构建单元、对应关系建立单元和页面生成单元。其中,这些单元的名称在某种情况下并不构成对该单元本身的限定,例如,页面生成单元还可以被描述为“用于生成对应标记语言文件的页面的单元”。The units involved in the embodiments of the present disclosure may be implemented in software or hardware. The described unit may also be provided in a processor. For example, it may be described as follows: a processor includes a file query unit, a template construction unit, a correspondence relationship establishment unit, and a page generation unit. The names of these units do not constitute a limitation on the unit itself under certain circumstances. For example, the page generation unit can also be described as "a unit used to generate pages corresponding to markup language files."
以上描述仅为本公开的较佳实施例以及对所运用技术原理的说明。本领域技术人员应当理解,本公开中所涉及的发明范围,并不限于上述技术特征的特定组合而成的技术方案,同时也应涵盖在不脱离上述发明构思的情况下,由上述技术特征或其等同特征进行任意组合而形成的其它技术方案。例如上述特征与本公开中公开的(但不限于)具有类似功能的技术特征进行互相替换而形成的技术方案。The above description is only a description of the preferred embodiments of the present disclosure and the technical principles applied. Those skilled in the art should understand that the scope of the invention involved in the present disclosure is not limited to technical solutions formed by a specific combination of the above technical features, but should also cover any solution consisting of the above technical features or without departing from the above inventive concept. Other technical solutions formed by any combination of equivalent features. For example, a technical solution is formed by replacing the above features with technical features with similar functions disclosed in this disclosure (but not limited to).
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010208637.5A CN111443909B (en) | 2020-03-23 | 2020-03-23 | Method and device for generating page |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010208637.5A CN111443909B (en) | 2020-03-23 | 2020-03-23 | Method and device for generating page |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN111443909A CN111443909A (en) | 2020-07-24 |
| CN111443909B true CN111443909B (en) | 2023-09-29 |
Family
ID=71654314
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202010208637.5A Active CN111443909B (en) | 2020-03-23 | 2020-03-23 | Method and device for generating page |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN111443909B (en) |
Families Citing this family (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112162729A (en) * | 2020-09-23 | 2021-01-01 | 北京首钢自动化信息技术有限公司 | VUE-based component development and display method |
| CN112099793B (en) * | 2020-09-25 | 2023-08-22 | 成都极米科技股份有限公司 | Interface generation method and device, electronic equipment and storage medium |
| CN114385945A (en) * | 2020-10-19 | 2022-04-22 | 阿里巴巴集团控股有限公司 | A method and device for generating a display page |
| CN113722026A (en) * | 2020-10-23 | 2021-11-30 | 北京沃东天骏信息技术有限公司 | Communication method, device, equipment and computer readable medium |
| CN112800724B (en) * | 2020-12-29 | 2024-07-19 | 杭州涂鸦信息技术有限公司 | Readable file export method and related device of visual configuration template |
| CN115357252B (en) * | 2022-10-08 | 2022-12-27 | 成都数联云算科技有限公司 | Source code file generation method and device, electronic equipment and storage medium |
Citations (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6684369B1 (en) * | 1997-06-19 | 2004-01-27 | International Business Machines, Corporation | Web site creator using templates |
| CN104798036A (en) * | 2012-08-14 | 2015-07-22 | 微软公司 | User interface control framework for stamping out controls using a declarative template |
| CN105827733A (en) * | 2016-05-12 | 2016-08-03 | 北京金山安全软件有限公司 | Data pushing method and device and electronic equipment |
| US9577889B1 (en) * | 2013-01-29 | 2017-02-21 | Amazon Technologies, Inc. | Managing page-level usage data |
| CN107632826A (en) * | 2016-07-14 | 2018-01-26 | 腾讯科技(深圳)有限公司 | The Compilation Method and client of a kind of source code |
| CN110297999A (en) * | 2019-05-09 | 2019-10-01 | 京东方科技集团股份有限公司 | A kind of web page template generation method and device, webpage loading method and front-end server and Website server |
| CN110347953A (en) * | 2019-05-20 | 2019-10-18 | 中国平安财产保险股份有限公司 | Page generation method, device, computer equipment and storage medium |
| CN110347984A (en) * | 2019-05-20 | 2019-10-18 | 中国平安财产保险股份有限公司 | Declaration form page variation, device, computer equipment and storage medium |
Family Cites Families (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20060150082A1 (en) * | 2004-12-30 | 2006-07-06 | Samir Raiyani | Multimodal markup language tags |
| US8352444B1 (en) * | 2011-07-11 | 2013-01-08 | Peter Hon-You Chang | User-driven menu generation system with dynamic generation of target files with placeholders for persistent change or temporary security change over cloud computing virtual storage from template files |
| US20150012819A1 (en) * | 2013-07-02 | 2015-01-08 | Linkedin Corporation | Template-driven decoration engine |
-
2020
- 2020-03-23 CN CN202010208637.5A patent/CN111443909B/en active Active
Patent Citations (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6684369B1 (en) * | 1997-06-19 | 2004-01-27 | International Business Machines, Corporation | Web site creator using templates |
| CN104798036A (en) * | 2012-08-14 | 2015-07-22 | 微软公司 | User interface control framework for stamping out controls using a declarative template |
| US9577889B1 (en) * | 2013-01-29 | 2017-02-21 | Amazon Technologies, Inc. | Managing page-level usage data |
| CN105827733A (en) * | 2016-05-12 | 2016-08-03 | 北京金山安全软件有限公司 | Data pushing method and device and electronic equipment |
| CN107632826A (en) * | 2016-07-14 | 2018-01-26 | 腾讯科技(深圳)有限公司 | The Compilation Method and client of a kind of source code |
| CN110297999A (en) * | 2019-05-09 | 2019-10-01 | 京东方科技集团股份有限公司 | A kind of web page template generation method and device, webpage loading method and front-end server and Website server |
| CN110347953A (en) * | 2019-05-20 | 2019-10-18 | 中国平安财产保险股份有限公司 | Page generation method, device, computer equipment and storage medium |
| CN110347984A (en) * | 2019-05-20 | 2019-10-18 | 中国平安财产保险股份有限公司 | Declaration form page variation, device, computer equipment and storage medium |
Non-Patent Citations (3)
| Title |
|---|
| L. M. Hillah 等.PNML Framework: An Extendable Reference Implementation of the Petri Net Markup Language.《Electronic Notes in Theor. Comp. Sci.》.2008,第214卷第231–254页. * |
| 孙斌 等.基于模板的BREW应用可视化界面设计及代码生成.《软件工程师》.2010,(第131、132期),第117-119页. * |
| 马翔宇.基于MVC的Canvas框架的设计与实现.《中国优秀硕士学位论文全文数据库 信息科技辑》.2020,I138-397. * |
Also Published As
| Publication number | Publication date |
|---|---|
| CN111443909A (en) | 2020-07-24 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN111443909B (en) | Method and device for generating page | |
| US11016716B2 (en) | Picture interface display method and apparatus according to jump protocol | |
| CN111338623B (en) | Method, device, medium and electronic equipment for developing user interface | |
| US20190114365A1 (en) | Method and apparatus for displaying information | |
| CN110704200B (en) | Method and device for converting calling interface | |
| CN110020329B (en) | Method, device and system for generating webpage | |
| CN104050212B (en) | Method and system for mobilizing a web application to take advantage of a native device capability | |
| CN110391938B (en) | Method and apparatus for deploying services | |
| CN110263287A (en) | Page rendering method and apparatus | |
| CN111581555B (en) | Document loading method, device, equipment and storage medium | |
| CN110263301B (en) | Method and apparatus for determining the color of text | |
| CN110738036A (en) | Method and apparatus for generating information | |
| CN111309304A (en) | Method, device, medium and electronic equipment for generating IDL file | |
| CN113448578A (en) | Page data processing method, processing system, electronic device and readable storage medium | |
| CN112256370B (en) | Information display method, device and electronic equipment | |
| CN115134208A (en) | Message conversion method, device, electronic device and storage medium | |
| CN111324376B (en) | Function configuration method, device, electronic equipment and computer readable medium | |
| CN111324470B (en) | Methods and devices for generating information | |
| CN110618811B (en) | Information presentation methods and devices | |
| CN113553123B (en) | Data processing method, device, electronic equipment and storage medium | |
| CN113992641B (en) | Data processing method, device, equipment and storage medium | |
| CN112162755A (en) | Data processing method, device, medium and electronic equipment | |
| CN113407229B (en) | Method and device for generating offline scripts | |
| CN113835790B (en) | Paging page display method and device based on Android | |
| CN113726827B (en) | Data packet processing method and device based on distributed cluster |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |