Content rendering method and device, computer equipment and storage medium
By including different versions of template component data in the content template data and matching the rendering engine version on the display terminal, the template rendering exceptions caused by the rendering engine version differences are solved, and development efficiency is improved.
Patent Information
- Application Number
- CN202311035453.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-16
- Publication Date
- 2025-02-21
AI Technical Summary
When existing rendering technology uses new functions of native components in templates, the old version of the rendering engine cannot recognize it, resulting in abnormal rendering of templates, and multiple templates need to be developed to adapt to different versions of software development tools, resulting in low development efficiency.
By setting template component data that represents different versions of the same template component in the content template data, it matches it with at least one version of the rendering engine, and renders it on the display terminal according to the rendering engine version matching the target template component data.
It realizes rendering the same template component on different versions of the rendering engine, avoiding the need to develop content template data separately for different versions, and improving development efficiency.
Smart Images

Figure CN119494899A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a content rendering method, apparatus, computer equipment, storage medium and computer program product. Background Art
[0002] With the development of computer technology, rendering technology has emerged. In computer graphics, rendering refers to the process of generating images from models using software. A model is a description of a three-dimensional object using a strictly defined language or data structure, which includes geometry, viewpoint, texture, and lighting information. For example, for the rendering of audio and video content, the corresponding content template can be generated in advance through a domain-specific language, and then sent to the terminal, and the content template is rendered through the software development kit (SDK) deployed on the terminal. However, in the current rendering process, when the new function of the native component is used in the template, it means that the old version of the rendering engine cannot recognize the new function of the component, resulting in abnormal template rendering. At the same time, the native template will also be sent to the old version of the software development tool, resulting in abnormal template display in the old version of the software development tool.
[0003] To this end, currently multiple templates can be developed to adapt to different versions of software development tools to achieve rendering of template content. However, this rendering method will lead to a huge workload for template development and testing, thereby reducing the efficiency of the development process. Summary of the invention
[0004] Based on this, it is necessary to provide a content rendering method, apparatus, computer equipment, computer-readable storage medium and computer program product that can effectively improve development efficiency in response to the above technical problems.
[0005] In a first aspect, the present application provides a content rendering method. The method comprises:
[0006] Receive a template data acquisition request sent by a display terminal;
[0007] Based on the template data acquisition request, searching for content template data, the content template data includes at least one group of template component data, each template component data in the same group of template component data represents a different version of the same template component, and each of the template component data matches at least one version of a rendering engine;
[0008] The content template data is fed back to the display terminal, and the rendering engine configured in the display terminal is used to render the content according to the template component represented by the target template component data in the content template data, and the version of the target template component data matches the version of the rendering engine configured in the display terminal.
[0009] In a second aspect, the present application also provides a content rendering device. The device comprises:
[0010] A request receiving module, used to receive a template data acquisition request sent by a display terminal;
[0011] A template search module, configured to search for content template data based on the template data acquisition request, wherein the content template data includes at least one set of template component data, each template component data in the same set of template component data represents a different version of the same template component, and each of the template component data matches at least one version of a rendering engine;
[0012] A data feedback module is used to feed back the content template data to the display terminal. The rendering engine configured in the display terminal is used to render the content according to the template component represented by the target template component data in the content template data. The version of the target template component data matches the version of the rendering engine configured in the display terminal.
[0013] In a third aspect, the present application further provides a computer device. The computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the following steps when executing the computer program:
[0014] Receive a template data acquisition request sent by a display terminal;
[0015] Based on the template data acquisition request, searching for content template data, the content template data includes at least one group of template component data, each template component data in the same group of template component data represents a different version of the same template component, and each of the template component data matches at least one version of a rendering engine;
[0016] The content template data is fed back to the display terminal, and the rendering engine configured in the display terminal is used to render the content according to the template component represented by the target template component data in the content template data, and the version of the target template component data matches the version of the rendering engine configured in the display terminal.
[0017] In a fourth aspect, the present application further provides a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the following steps are implemented:
[0018] Receive a template data acquisition request sent by a display terminal;
[0019] Based on the template data acquisition request, searching for content template data, the content template data includes at least one group of template component data, each template component data in the same group of template component data represents a different version of the same template component, and each of the template component data matches at least one version of a rendering engine;
[0020] The content template data is fed back to the display terminal, and the rendering engine configured in the display terminal is used to render the content according to the template component represented by the target template component data in the content template data, and the version of the target template component data matches the version of the rendering engine configured in the display terminal.
[0021] In a fifth aspect, the present application further provides a computer program product. The computer program product includes a computer program, and when the computer program is executed by a processor, the following steps are implemented:
[0022] Receive a template data acquisition request sent by a display terminal;
[0023] Based on the template data acquisition request, searching for content template data, the content template data includes at least one group of template component data, each template component data in the same group of template component data represents a different version of the same template component, and each of the template component data matches at least one version of a rendering engine;
[0024] The content template data is fed back to the display terminal, and the rendering engine configured in the display terminal is used to render the content according to the template component represented by the target template component data in the content template data, and the version of the target template component data matches the version of the rendering engine configured in the display terminal.
[0025] The above-mentioned content rendering method, device, computer equipment, storage medium and computer program product, after receiving the template data acquisition request sent by the display terminal, search for content template data based on the template data acquisition request, and the content template data includes at least one group of template component data, each template component data in the same group of template component data represents different versions of the same template component, and each template component data matches at least one version of the rendering engine, so that the template component in the content template data can be rendered by different versions of the rendering engine, and after finding the content template data, the content template data can be fed back to the display terminal, and on the display terminal, because each template component data on the content template data matches at least one version of the rendering engine, the target template component data can be matched on the terminal based on the version of the rendering engine configured by the display terminal to complete the rendering of the version component, so that there is no need to develop content template data separately for different versions of the rendering engine, thereby improving the development efficiency of the development process. The scheme of the present application, by setting template component data representing different versions of the same template component in the content template data, enables rendering to be achieved on different versions of the rendering engine during the rendering process of the template component, without the need to develop corresponding content template data separately for different versions of the rendering engine, thereby improving the development efficiency of the content template development process.
[0026] In a sixth aspect, the present application also provides another content rendering method. The method comprises:
[0027] Send a template data acquisition request to the content server;
[0028] Receive content template data fed back by the content server based on the template data acquisition request, wherein the content template data includes at least one group of template component data, each template component data in the same group of template component data represents a different version of the same template component, and each of the template component data matches at least one version of a rendering engine;
[0029] Based on the configured rendering engine version, determining target template component data in the content template data that matches the rendering engine version;
[0030] The target template component data is rendered using the rendering engine.
[0031] In a seventh aspect, the present application also provides another content rendering device. The device comprises:
[0032] A request sending module, used for sending a template data acquisition request to a content server;
[0033] A data receiving module, configured to receive content template data fed back by the content server based on the template data acquisition request, wherein the content template data includes at least one group of template component data, each template component data in the same group of template component data represents a different version of the same template component, and each of the template component data matches at least one version of a rendering engine;
[0034] A component identification module, used to determine, based on the configured rendering engine version, target template component data in the content template data that matches the rendering engine version;
[0035] A content rendering module is used to perform content rendering on the target template component data through the rendering engine.
[0036] In an eighth aspect, the present application further provides another computer device. The computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the following steps when executing the computer program:
[0037] Send a template data acquisition request to the content server;
[0038] Receive content template data fed back by the content server based on the template data acquisition request, wherein the content template data includes at least one group of template component data, each template component data in the same group of template component data represents a different version of the same template component, and each of the template component data matches at least one version of a rendering engine;
[0039] Based on the configured rendering engine version, determining target template component data in the content template data that matches the rendering engine version;
[0040] The target template component data is rendered using the rendering engine.
[0041] In a ninth aspect, the present application further provides another computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the following steps are implemented:
[0042] Send a template data acquisition request to the content server;
[0043] Receive content template data fed back by the content server based on the template data acquisition request, wherein the content template data includes at least one group of template component data, each template component data in the same group of template component data represents a different version of the same template component, and each of the template component data matches at least one version of a rendering engine;
[0044] Based on the configured rendering engine version, determining target template component data in the content template data that matches the rendering engine version;
[0045] The target template component data is rendered using the rendering engine.
[0046] In a tenth aspect, the present application also provides another computer program product. The computer program product includes a computer program, and when the computer program is executed by a processor, the following steps are implemented:
[0047] Send a template data acquisition request to the content server;
[0048] Receive content template data fed back by the content server based on the template data acquisition request, wherein the content template data includes at least one group of template component data, each template component data in the same group of template component data represents a different version of the same template component, and each of the template component data matches at least one version of a rendering engine;
[0049] Based on the configured rendering engine version, determining target template component data in the content template data that matches the rendering engine version;
[0050] The target template component data is rendered using the rendering engine.
[0051] The above-mentioned content rendering method, device, computer equipment, storage medium and computer program product, by sending a template data acquisition request to the content server, thereby receiving the content template data fed back by the content server based on the template data acquisition request, the content template data includes at least one group of template component data, each template component data in the same group of template component data represents the same template component of different versions, and each template component data matches at least one version of the rendering engine. Then, in the process of template rendering, firstly based on the configured version of the rendering engine, the target template component data in the content template data that matches the version of the rendering engine is determined, that is, from the content template data, the template component data that can be rendered by the rendering engine of the current version is determined, and then the target template component data is rendered by the rendering engine. The scheme of the present application, by setting the template component data representing different versions of the same template component in the content template data, enables the rendering of the template component to be realized on the rendering engines of different versions during the content rendering process, thereby enabling the rendering of the template component to be realized on the rendering engines of different versions during the rendering process, without the need to develop the corresponding content template data separately for the rendering engines of different versions, thereby improving the development efficiency of the content template development process. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] Figure 1 A diagram of an application environment of a content rendering method in an embodiment;
[0053] Figure 2 A schematic diagram of a flow chart of a content rendering method in an embodiment;
[0054] Figure 3 A diagram showing the correspondence between template component versions, rendering engine versions, and software development kit versions in one embodiment;
[0055] Figure 4 A schematic diagram of a set of template component data in one embodiment;
[0056] Figure 5 It is a flowchart of a content rendering method in another embodiment;
[0057] Figure 6 A schematic diagram of the correspondence between template component versions and rendering engine versions in one embodiment;
[0058] Figure 7 A schematic diagram of the overall process of template development, storage, and rendering in an embodiment;
[0059] Figure 8 A schematic diagram of a timing flow of a content rendering method in an embodiment;
[0060] Fig. 9 is a structural block diagram of a content rendering device in one embodiment;
[0061] Fig.10 is a structural block diagram of a content rendering device in another embodiment;
[0062] Fig.11 is an internal structure diagram of a computer device in one embodiment;
[0063] Fig.12 FIG. 4 is a diagram showing the internal structure of a computer device in another embodiment. DETAILED DESCRIPTION
[0064] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0065] In this article, it is important to understand that the terms involved are:
[0066] Client: mainly includes Android client and iOS client;
[0067] Components: Encapsulate the user interface (UI) and logic into independent, reusable parts.
[0068] Domain-Specific Language (DSL) refers to a computer language that focuses on a certain application domain. The DSL mentioned in this application can be specifically described in the JSON format of the Android XML language.
[0069] Native content template: Utilize the native capabilities of the client (Android and iOS) to dynamically render a content template from the template DSL sent by the server, referred to as a native template.
[0070] Native rendering engine: An engine that renders the native template DSL into content template styles on the client.
[0071] Software Development Kit (SDK): It is a collection of software development tools, usually including APIs, libraries, tools, and documentation, etc., which are used to help developers develop software applications quickly and efficiently.
[0072] W2N (Web To Native): A conversion engine that converts AXML to native template DSL.
[0073] The content rendering method provided in the embodiment of the present application can be applied to Figure 1In the application environment shown, the display terminal 102 communicates with the content server 104 through a network. The data storage system can store data that the content server 104 needs to process. The data storage system can be integrated on the content server 104, or placed on the cloud or other servers. When a user of the display terminal 102 wishes to render content such as images or videos on the display terminal 102, a content display request can be submitted to the display terminal 102. The display terminal 102 sends a template data acquisition request to the content server 104 according to the content display request submitted by the user. The content server 104 receives the template data acquisition request sent by the display terminal 102; based on the template data acquisition request, the content template data is searched, the content template data includes at least one group of template component data, each template component data in the same group of template component data represents a different version of the same template component, and each template component data matches at least one version of the rendering engine; the content template data is fed back to the display terminal 102, and the display terminal 102 receives the content template data fed back by the content server 104 based on the data acquisition request, and then determines the target template component data in the content template data that matches the version of the rendering engine based on the configured rendering engine; finally, the rendering engine performs content rendering on the target template component data. The display terminal 102 may be, but is not limited to, various desktop computers, laptop computers, smart phones, tablet computers, IoT devices, and portable wearable devices. IoT devices may be smart speakers, smart TVs, smart air conditioners, smart car-mounted devices, etc. Portable wearable devices may be smart watches, smart bracelets, head-mounted devices, etc. The content server 104 may be implemented as an independent server or a server cluster consisting of multiple servers.
[0074] In one embodiment, Figure 2 As shown, a content rendering method is provided, which is applied to Figure 1 Taking the content server 104 in the example as an example, the following steps are included:
[0075] Step 201: receiving a template data acquisition request sent by a display terminal.
[0076] The template data acquisition request refers to a request sent by the display terminal 102 to the content server 104, which is used to obtain the corresponding content template data from the content server 104 for display. Display refers to displaying the template and content corresponding to the content template data on the display on the terminal 102. The template data acquisition request may specifically include content display location information related to the display terminal 102 and information related to the requested content template, and the content server 104 may search and feedback the corresponding content template data according to the template data acquisition request.
[0077] Specifically, when the display terminal 102 wants to display relevant content on the terminal display, for example, when displaying a banner containing a video, an image, and a text on a page, the display terminal 102 can submit a corresponding template data acquisition request to the content server 104, and add content display location information and requested content template related information to the template data acquisition request. The content display location information may include the position of the terminal display where the content is displayed, or the position of the interface where the content is displayed. As for the requested content template related information, it may be the template type involved in the content template, the length and width of the display content corresponding to the template, etc. In one embodiment, the present application is applied to the rendering processing of promotional content. At this time, when the user of the display terminal enters the designated promotional page, the terminal 102 can send a template data acquisition request to the content server 104, thereby obtaining the corresponding content template data, and realizing the rendering of the content template data on the promotional page to obtain the promotional content.
[0078] Step 203, based on the template data acquisition request, search for content template data, the content template data includes at least one group of template component data, each template component data in the same group of template component data represents a different version of the same template component, and each template component data matches at least one version of the rendering engine.
[0079] Among them, content template data refers to data that is pre-made and specifically used to generate content templates. In a specific embodiment, the display terminal 102 is specifically a mobile terminal equipped with an Android system. At this time, the content template data can be specifically in the form of a domain-specific language, which is essentially a JS key-value pair data (JavaScript Object Notation, JSON) format description of the Android extensible markup language (eXtensible Markup Language, XML) language. The composition of the content template data includes components that make up the template, such as feedback content components, button components, or link components. As for the version of the component and the version of the rendering engine. At present, during development, each iteration of the template component requires an upgrade of the rendering engine on the display terminal, that is, each version of the component will correspond to a version of the rendering engine. And each upgrade of the rendering engine needs to be updated through the SDK release, that is, one version of the rendering engine corresponds to one version of the SDK.
[0080] Specifically, after receiving the template data acquisition request, the content server 104 will first parse the template data acquisition request, determine the content template data requested by the terminal 102, and then find this part of the content template data in the database. For the template data search process, the template data acquisition request can be used to determine the index information such as the size or type of the template, and then the content template data that meets the index requirements can be searched in the database based on these index information. At the same time, the content template data includes at least one group of template component data, and each template component data in the same group of template component data represents different versions of the same template component, and each template component data matches at least one version of the rendering engine. That is, for the template components in the content template data, each template component contains a group of template component data containing multiple versions, and these template component data represent different versions of the same template component, and each template component data matches at least one version of the rendering engine.
[0081] In one embodiment, the display terminal 102 implements content rendering through the rendering engine of the SDK, and the content template data is implemented in the DSL format. The component version, the native rendering engine version and the SDK version relationship diagram can be referred to Figure 3 As shown, it can be seen that in the initial state, the component version and the native rendering engine version are both 0, that is, the initial version, corresponding to version 4.13.30 of the SDK, and each time the SDK version is updated, the native rendering engine will be updated along with the SDK version. If a component iteration adds new functions, the native rendering engine needs to be iterated accordingly to ensure that the native rendering engine can recognize the new functions of the component. The iteration of the native rendering engine needs to be achieved by releasing a new version of the SDK. Therefore, when a native template uses a new function of the native component, it means that the old version of the rendering engine cannot recognize the new function of the component. In the solution of the present application, in the content template data, the same template component contains template component data corresponding to different versions of rendering engines. For example, for Figure 3 When generating content template data containing components, for the template component data corresponding to the component, the DSL of the version 0 component, the DSL of the version 1 component, and the DSL of the version 2 component can be generated, and the version matching requirements of the rendering engine corresponding to the version DSL can be noted in the DSL respectively. That is, the DSL of the version 0 component can be at least rendered by the version 0 rendering engine, the DSL of the version 1 component can be at least rendered by the version 2 rendering engine, and the DSL of the version 2 component can be at least rendered by the version 8 rendering engine, that is, each template component data matches at least one version of the rendering engine.
[0082] Step 205, feeding back the content template data to the display terminal, the rendering engine configured in the display terminal is used to render the content according to the template component represented by the target template component data in the content template data, and the version of the target template component data matches the version of the rendering engine configured in the display terminal.
[0083] Specifically, after the content template data is found, the found content template data can be fed back to the display terminal 102 through the network. After receiving the content template data, the terminal 102 can call the rendering engine on the terminal 102 to render the content template data. In the rendering process, for the template component data, according to the version of the rendering engine on the terminal, the target template component data matching the version can be found, and then the target template component data can be rendered. After the content template data is rendered, the final rendering content can be obtained.
[0084] The above-mentioned content rendering method, device, computer equipment, storage medium and computer program product, after receiving the template data acquisition request sent by the display terminal, search for content template data based on the template data acquisition request, and the content template data includes at least one group of template component data, each template component data in the same group of template component data represents different versions of the same template component, and each template component data matches at least one version of the rendering engine, so that the template component in the content template data can be rendered by different versions of the rendering engine, and after finding the content template data, the content template data can be fed back to the display terminal, and on the display terminal, because each template component data on the content template data matches at least one version of the rendering engine, the target template component data can be matched on the terminal based on the version of the rendering engine configured by the display terminal to complete the rendering of the version component, so that there is no need to develop content template data separately for different versions of the rendering engine, thereby improving the development efficiency of the development process. The scheme of the present application, by setting template component data representing different versions of the same template component in the content template data, enables rendering to be achieved on different versions of the rendering engine during the rendering process of the template component, without the need to develop corresponding content template data separately for different versions of the rendering engine, thereby improving the development efficiency of the content template development process.
[0085] In one embodiment, the method includes: acquiring template development data; converting the language format of the template development data into a domain-specific language format through a conversion engine to obtain content template data.
[0086] The template development data refers to the code data related to the content template written by the template developer. In one embodiment, the content template is suitable for displaying content on the Android platform. The template development data specifically refers to the code data in the AXML format written by the template developer. The conversion engine is a conversion engine for converting the template development data into content template data in a domain-specific language format.
[0087] Specifically, before content rendering, the development of the content template needs to be completed on the content server side. During the development process, the template developer can first determine the language selected for template development based on the template display platform, and then complete the development of the template content to obtain the template development data under the template development language. After obtaining the template development data, the language format of the template development data can be converted to a domain-specific language format through a conversion engine to obtain content template data, which will be stored in the template database for use in subsequent content rendering. In one embodiment, the content template is suitable for content display on the Android platform. The template developer can first write the code in AXML format as the initial template data, and then use the W2N conversion engine to convert the template development data in AXML format into a native template DSL. In this embodiment, the template development data written based on the template platform is converted into content template data in a domain-specific language format through a conversion engine for subsequent template storage and template rendering processing, thereby improving the processing efficiency of the template rendering process.
[0088] In one embodiment, converting the language format of template development data into a domain-specific language format through a conversion engine to obtain content template data includes: performing format conversion processing on the template development data through the conversion engine to obtain format conversion data; traversing the format conversion data, and performing syntax conversion processing on the format conversion data during the traversal process to obtain content template data.
[0089] The format conversion process refers to converting the format of the original template development data into the domain-specific language format while retaining the syntax of the original template development data. The syntax conversion process refers to converting the syntax of the template data designed in the format conversion data into the syntax of the native template definition (the syntax of the domain-specific language format).
[0090] Specifically, in the scheme of the present application, the conversion process from template development data to content template data can be completed by a corresponding conversion engine. The conversion engine can realize the conversion of template development data by step-by-step conversion. First, the syntax of template development data is retained, and the template development data is formatted and processed to obtain format conversion data; the format conversion data is traversed, and the format conversion data is syntax converted during the traversal process to obtain content template data. In one embodiment, the conversion engine is a W2N engine, the template development data is AXML format data with html syntax and css syntax, and the content template data is DSL data described in the Android XML language JSON format. At this time, the W2N engine can perform data format conversion in steps. The first step is to convert the data in AXML (HTML syntax and CSS syntax) format into JSON format data, but the syntax is still html and css syntax. The second step is to traverse the data that has been converted to JSON format, and convert the HTML syntax and CSS syntax therein into the syntax defined by the native template. In this embodiment, the step-by-step conversion process of template development data is realized by the conversion engine, which can effectively ensure the processing efficiency and accuracy of the template development data conversion process.
[0091] In one embodiment, the method also includes: determining template component data in the content template data during the traversal process; identifying the component version of the template component data; based on the component version, generating different versions of template component data of the same template component to obtain a set of template component data, and marking the matching conditions of the rendering engine in a set of template component data based on the matching relationship between different versions of template component data and the rendering engine version.
[0092] The component version refers to the version of the template component selected by the developer when developing the template. The component version corresponds to the rendering engine version. Each iteration of the component requires an upgrade of the rendering engine, that is, each version of the component corresponds to a rendering engine version. At the same time, each upgrade of the rendering engine needs to be updated through the SDK release, that is, one version of the rendering engine corresponds to one version of the SDK.
[0093] Specifically, the content template data includes template component data for different versions of rendering engines corresponding to the same template component. Therefore, during the template conversion process, for the template component selected by the developer in the template development data, the conversion engine also needs to identify the current version of the component, so as to automatically generate a component DSL of the same template component that is smaller than this version. Developers generally use the latest version of the component for template development, so what is generated here is all the DSL data from the first version of the component to the latest version of the component. At the same time, according to the matching relationship between the component version and the rendering engine version, the matching condition of the rendering engine version can be marked in the template component data. For example, for Figure 3 The version correspondence between the key template component and the rendering engine, when the developer selects the version 2 component as the template component in the template development data, if the rendering engine version on the display terminal does not meet the rendering engine matching requirements corresponding to the version 2 component (here corresponding to version 8 of the rendering engine). Then the component cannot be rendered normally on the display terminal, thereby affecting the display effect of the template content. If the method of developing multiple templates to adapt to different versions of SDK is adopted, it will lead to huge development and testing workload, low efficiency and other problems. Therefore, in the scheme of the present application, the component version of the template component data can be identified first. Then, based on the component version, the template component data of different versions of the same template component is generated to obtain a set of template component data, and according to the matching relationship between the component version and the rendering engine version, the matching condition of the rendering engine is marked in the template component data. For example, for the version 2 component, the template component data of the version 1 component and the version 0 component can be automatically generated, so no matter which version of the rendering engine of the display terminal is, the template component data that can be rendered can be found from the content template data. And according to the corresponding relationship between the component version and the rendering engine version, the rendering engine version requirement is marked in the template component data. In addition, the engine version ranges corresponding to different versions of component DSL data generated by the same component do not overlap. Figure 4 As shown, for the rendering engine version requirements marked in the template component data, in addition to the minimum rendering engine version requirements, the maximum rendering engine version requirements can also be marked (the maximum rendering engine version requirements can be not set by default, and its value defaults to infinity when not set). For the component of version (iconType) 2, the corresponding minimum version of the rendering engine is the rendering engine of version 8. Therefore, the minimum version (minVersion) of the rendering engine can be marked as 8 in the template component data of the version 2 component. The rendering engine lower than version 8 cannot render the template component data. In the template component data of the version 1 component, the minimum version of the rendering engine is marked as 2, and the maximum version (maxVersion) is marked as 7. The rendering engine lower than version 2 and the rendering engine higher than version 7 cannot render the template component data. In the template component data of the version 0 component (initial version), the minimum version of the rendering engine is marked as 0, and the maximum version is 1, indicating that it can only be rendered when the rendering engine version is greater than or equal to 0 and less than or equal to 1. In this embodiment, the component version of the template component data is used to generate template component data corresponding to each component version of the same template component, and the rendering engine version requirements are marked, so that the corresponding template component data can be effectively selected according to the engine version on the display terminal to complete the rendering processing of the template component.
[0094] In one embodiment, step 203 includes: searching for content template data and display content data based on the template data acquisition request. Step 205 includes: feeding back the content template data and display content data to the display terminal.
[0095] Specifically, the display content data refers to data that can be loaded and displayed in the content template. When rendering the content, in addition to searching for the content template data, the content server can also search for the display content data related to the content template data, such as a set of videos, pictures and texts. Then the content template data and the display content data are fed back to the display terminal. On the display terminal, the content template can be rendered according to the content template data sent by the content server, and the display content data is filled into the rendered content template to obtain the final display content. In a specific embodiment, the process of searching for content template data and display content data based on the template data acquisition request specifically includes: extracting the display format information and content type information of the display terminal in the template data acquisition request; searching for content template data based on the display format information; searching for display content data matching the content template data based on the content type information. That is, after receiving the template data acquisition request, the display format information and content type information of the display terminal are obtained by parsing the template data acquisition request. Then, matching is performed in the database based on the display format information to obtain the content template data. At the same time, the corresponding type can be found in the database based on the content type information, and the display content data that can be loaded on the current content template. In this embodiment, by searching for content template data and display content data, after the content template is rendered, the feedback display content data can be loaded on the rendered content template, thereby improving the display effect of the display terminal for content display.
[0096] In one embodiment, Figure 5 As shown, a content rendering method is provided, which is applied to Figure 1 Taking the display terminal 102 in the example as an example, the following steps are included:
[0097] Step 502: Send a template data acquisition request to the content server.
[0098] Specifically, when the user wants to display the display content generated based on the content template on the display terminal 102, the display terminal 102 can initiate a content display request to the display terminal 102 by pressing a button or switching pages, and after determining that the user has submitted the content display request, the display terminal 102 can send a template data acquisition request to the content server 104 accordingly, and add the content display position information and the requested content template related information to the template data acquisition request. Among them, the content display position information can include the position of the terminal display where the content display is located, or the position of the interface. As for the requested content template related information, it can be the template type involved in the content template, the length and width of the display content corresponding to the template, etc. In one embodiment, the present application is applied to the rendering processing of promotional content. At this time, when the user enters the specified promotion page by operating the display terminal 102, the terminal 102 can be regarded as obtaining the content display request, and sends a template data acquisition request to the content server 104, thereby obtaining the corresponding content template data, and realizing the rendering of the content template data on the promotion page to obtain the promotional content.
[0099] Step 504, receiving content template data fed back by the content server based on the template data acquisition request, the content template data includes at least one group of template component data, each template component data in the same group of template component data represents a different version of the same template component, and each template component data matches at least one version of the rendering engine.
[0100] Specifically, content template data refers to data that is pre-made and specifically used to generate content templates. When the content server 104 receives a request to obtain template data, it will obtain relevant information about the content template requested by the display terminal 102 by parsing the request to obtain template data, and will feed back the content template data that can be used to render the content template to the display terminal 102, and the display terminal 102 will start the content rendering process according to the feedback from the content server 104. In a specific embodiment, the display terminal 102 is specifically a mobile terminal equipped with an Android system. At this time, the content template data can be specifically in the form of a domain-specific language, which is essentially a JS key-value pair data (JavaScript Object Notation, JSON) format description of the Android extensible markup language (eXtensible Markup Language, XML) language. The composition of the content template data includes components that make up the template, such as a feedback content component, a button component, or a link component.
[0101] Step 506: Based on the configured version of the rendering engine, determine the target template component data in the content template data that matches the version of the rendering engine.
[0102] Specifically, the version of the rendering engine refers to the version corresponding to the rendering engine on the current display terminal 102. Since the version of the component is restricted by the version of the rendering engine, and the content template data includes at least one set of template component data, each template component data in the same set of template component data represents a different version of the same template component, and each template component data matches at least one version of the rendering engine. Therefore, after receiving the content template data, the rendering engine version used for template rendering on the current display terminal can be determined first, and then for each template component in the content template data, the target template component data matching the rendering engine version is determined.
[0103] Step 508: Render the target template component data through a rendering engine.
[0104] Specifically, after determining the target template component data corresponding to the rendering engine on the current terminal in the content template data, the rendering engine can process the content rendering of these determined target template component data. At the same time, the rendering engine will also render other parts of the content template data to obtain the template content that can be normally displayed on the terminal and display it.
[0105] The above-mentioned content rendering method, device, computer equipment, storage medium and computer program product, by sending a template data acquisition request to the content server, thereby receiving the content template data fed back by the content server based on the template data acquisition request, the content template data includes at least one group of template component data, each template component data in the same group of template component data represents the same template component of different versions, and each template component data matches at least one version of the rendering engine. Then, in the process of template rendering, firstly based on the configured version of the rendering engine, the target template component data in the content template data that matches the version of the rendering engine is determined, that is, from the content template data, the template component data that can be rendered by the rendering engine of the current version is determined, and then the target template component data is rendered by the rendering engine. The scheme of the present application, by setting the template component data representing different versions of the same template component in the content template data, enables the rendering of the template component to be realized on the rendering engines of different versions during the content rendering process, thereby enabling the rendering of the template component to be realized on the rendering engines of different versions during the rendering process, without the need to develop the corresponding content template data separately for the rendering engines of different versions, thereby improving the development efficiency of the content template development process.
[0106] In one embodiment, step 506 includes: obtaining the version of the rendering engine based on the configuration data of the rendering engine; performing matching processing based on the version of the rendering engine and the matching conditions marked in the template component data; when the version of the rendering engine meets the matching conditions of the rendering engine version corresponding to the template component data, using the template component data as the target template component data.
[0107] Specifically, for the determination process of the rendering engine version, the SDK version can be determined by the configuration data of the display terminal 102, so as to obtain the rendering engine version corresponding to the SDK version. Then, after identifying the rendering engine version, for each set of template component data, matching processing can be performed based on the matching conditions marked in the template component data. The order of matching processing here is specifically to first match the rendering engine version with the highest version of the template component data for matching processing. As for the matching conditions of the rendering engine version, the lowest version of the rendering engine and the highest version of the rendering engine can be marked in the template component data. When the rendering engine version is higher than or equal to the lowest version of the rendering engine corresponding to the template component data, and lower than or equal to the highest version of the rendering engine corresponding to the template component data, the template component data is used as the target template component data. In one embodiment, taking the negative feedback component as an example, the first version of the component is a pure picture, including two types of dark and gray backgrounds, and the corresponding rendering engine version range is [0, 1]. The second version iteration adds the function of negative feedback, and the style of negative feedback is significantly different from the first version, and the corresponding rendering engine version range is [2, 7]. The third version adds a transparent background type, and the corresponding version range is greater than or equal to 8. The corresponding relationship between the rendering engine version of the negative feedback component and the template component data version can be referred to Figure 3 , and the set of template component data corresponding to the negative feedback component can be referred to Figure 4 , you can refer to the diagram of component compatibility with different versions of rendering engines Figure 6 . When the terminal needs to render the negative feedback component, the version of the rendering engine can be determined first, and then the version of the rendering engine can be matched with the template component data of version 2 in this set of template component data. The minimum version of the rendering engine marked in the template component data of version 2 is 8. If the version of the rendering engine is higher than or equal to 8, it means that the version of the rendering engine meets the matching condition of the rendering engine version corresponding to the template component data, and the template component data of version 2 can be used as the target template component data. If the version of the rendering engine is lower than 8, the version of the rendering engine is matched with the template component data of version 1 in this set of template component data. And so on, the matching process of the template component data is completed to obtain the target template component data. In this embodiment, the matching process is completed by the matching condition marked in the rendering engine version and the template component data, and the matching is completed based on the minimum version of the rendering engine. The accuracy and efficiency of the rendering engine matching can be effectively guaranteed, thereby obtaining reliable target template component data to complete the rendering process, thereby ensuring the efficiency and effect of template rendering.
[0108] In one embodiment, step 504 includes: receiving content template data and display content data fed back by the content server based on the template data acquisition request. Step 508 includes: rendering the content template data containing the target template component data by a rendering engine to obtain a rendering template; filling the rendering template based on the display content data to obtain rendering content.
[0109] Specifically, the display content data refers to data that can be loaded and displayed in the content template. When searching for the content template data, the content server can also search for the display content data that can be displayed in the content template, such as a set of videos, pictures and texts. Then the content template data and the display content data are fed back to the display terminal. In the display terminal, the content template can be rendered according to the content template data sent by the content server, and the display content data is filled into the rendered content template to obtain the final display content. In a specific embodiment, the process of searching for content template data and display content data based on the template data acquisition request specifically includes: extracting the display format information and content type information of the display terminal in the template data acquisition request; searching for content template data based on the display format information; searching for display content data matching the content template data based on the content type information. That is, after receiving the template data acquisition request, the display format information and content type information of the display terminal are obtained by parsing the template data acquisition request. Then, matching is performed in the database based on the display format information to obtain the content template data. At the same time, the display content data of the corresponding type can be found in the database based on the content type information, and can be loaded into the current content template. In this embodiment, by receiving content template data and display content data, after the content template is rendered, the feedback display content data can be loaded on the rendered content template, thereby improving the display effect of the display terminal for content display.
[0110] The present application also provides an application scenario, and the application scenario applies the above-mentioned content rendering method. Specifically, the application of the content rendering method in the application scenario is as follows:
[0111] The present application can be specifically applied to the advertising field. In this case, the flowchart of the content rendering method of the present application can be referred to Figure 7As shown, advertising vendors can mount advertising content on the Android applications they provide. The advertising content can be pre-designed in the form of advertisements through content templates, and then when the user uses the Android application, the corresponding advertising data can be loaded on the application page to realize advertising playback. Therefore, it is necessary to design the content template first. The template developer can set the template specifications according to the location used to play advertisements on the Android application, and add corresponding components to realize various functions of the advertisement, and complete the writing and processing of the content template data in the language of AXML format. Then, the written content template data in the AXML language format is provided to the content server, and the content server converts the content template data in the AXML language format into the content template data in the DSL format through the conversion engine W2N. In addition, during the conversion process, the template component data in the content template data is determined, and then the component version of the template component data is identified; based on the component version, different versions of the template component data of the same template component are generated to obtain a set of template component data, and according to the matching relationship between the template component data of different versions and the rendering engine version, the matching conditions of the rendering engine are marked in a set of template component data. The display terminal receives the content template data that the content server obtains the request feedback based on the template data
[0112] When an Android user uses the application on a display terminal and enters a designated advertising page, the display terminal sends a template data acquisition request for playing an advertisement to the content server. The content service receives the template data acquisition request, and then searches for the content template data and the advertisement content data of the advertisement based on the template data acquisition request, and then feeds the two back to the display terminal. The rendering engine version is obtained based on the configuration data of the rendering engine on the display terminal; the rendering engine version is matched with the matching conditions marked in the template component data, and when the rendering engine version is higher than or equal to the minimum rendering engine version corresponding to the template component data, and lower than or equal to the maximum rendering engine version corresponding to the template component data, the template component data is used as the target template component data. Finally, the content template data containing the target template component data is rendered by the rendering engine to obtain a rendering template; the rendering template is filled based on the display content data to obtain the rendered content of the advertisement. The advertisement is played on the page of the Android terminal.
[0113] In one embodiment, the timing flow chart of the content rendering method of the present application can refer to Figure 8 As shown, including:
[0114] Step 801, the content server obtains template development data from the template development terminal where the template developer is located. Step 803, template format conversion, that is, the content server obtains the template development data and converts the language format of the template development data into a domain-specific language format through a conversion engine to obtain content template data. At the same time, the process of template format conversion also includes a process of generating different versions of template component data of the same template component based on the component version of the template component data. Step 805, the display terminal sends a template data acquisition request to the content server. Step 807, the content server searches for data based on the template data acquisition request, specifically including content template data and display content data. Step 809, the content server feeds back the content template data and display content data to the display terminal. The display terminal then receives the content template data and display content data fed back by the content server based on the template data acquisition request. Step 811, component search, that is, the display terminal determines the target template component data in the content template data that matches the version of the rendering engine based on the configured rendering engine version. Step 813, template rendering, that is, the display terminal renders the content template data containing the target template component data to obtain a rendering template; fills the rendering template based on the display content data to obtain rendering content, thereby realizing the processing flow of template rendering and content display.
[0115] It should be understood that, although the steps in the flowcharts involved in the above embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0116] Based on the same inventive concept, the embodiment of the present application also provides a content rendering device for implementing the content rendering method involved above. The implementation solution provided by the device to solve the problem is similar to the implementation solution recorded in the above method, so the specific limitations in one or more content rendering device embodiments provided below can refer to the limitations on the content rendering method above, and will not be repeated here.
[0117] In one embodiment, Fig. 9 As shown, a content rendering device is provided, comprising:
[0118] The request receiving module 902 is used to receive a template data acquisition request sent by a display terminal.
[0119] The template search module 904 is used to search for content template data based on a template data acquisition request. The content template data includes at least one group of template component data. Each template component data in the same group of template component data represents a different version of the same template component. Each template component data matches at least one version of a rendering engine.
[0120] The data feedback module 906 is used to feed back the content template data to the display terminal. The rendering engine configured in the display terminal is used to render the content according to the template component represented by the target template component data in the content template data. The version of the target template component data matches the version of the rendering engine configured in the display terminal.
[0121] In one embodiment, it also includes a template conversion module, which is used to: obtain template development data; convert the language format of the template development data into a domain-specific language format through a conversion engine to obtain content template data.
[0122] In one embodiment, the template conversion module is specifically used to: perform format conversion processing on the template development data through the conversion engine to obtain format conversion data; traverse the format conversion data, and perform syntax conversion processing on the format conversion data during the traversal process to obtain content template data.
[0123] In one embodiment, the template conversion module is also used to: determine the template component data in the content template data during the traversal process; identify the component version of the template component data; based on the component version, generate different versions of template component data of the same template component to obtain a set of template component data, and mark the matching conditions of the rendering engine in a set of template component data based on the matching relationship between different versions of template component data and the rendering engine version.
[0124] In one embodiment, the template search module 904 is specifically used to search for content template data and display content data based on the template data acquisition request.
[0125] Feedback of content template data to the display terminal includes: 906 is specifically used for: feeding back content template data and display content data to the display terminal.
[0126] In one embodiment, the template search module 904 is further used to: extract the display format information and content type information of the display terminal in the template data acquisition request; search for content template data based on the display format information; and search for display content data matching the content template data based on the content type information.
[0127] In one embodiment, Fig.10As shown, a content rendering device is provided, comprising:
[0128] The request sending module 1001 is used to send a template data acquisition request to the content server.
[0129] The data receiving module 1003 is used to receive content template data fed back by the content server based on the template data acquisition request. The content template data includes at least one group of template component data. Each template component data in the same group of template component data represents a different version of the same template component. Each template component data matches at least one version of the rendering engine.
[0130] The component identification module 1005 is used to determine the target template component data in the content template data that matches the version of the rendering engine based on the configured version of the rendering engine.
[0131] The content rendering module 1007 is used to render the target template component data through a rendering engine.
[0132] In one embodiment, the component identification module 1005 is specifically used to: obtain the version of the rendering engine based on the configuration data of the rendering engine; perform matching processing based on the version of the rendering engine and the matching conditions marked in the template component data; when the version of the rendering engine meets the matching conditions of the rendering engine version corresponding to the template component data, use the template component data as the target template component data.
[0133] In one embodiment, the component identification module 1005 is specifically used for: when the version of the rendering engine meets the matching condition of the rendering engine version corresponding to the template component data, using the template component data as the target template component data includes: when the version of the rendering engine is higher than or equal to the minimum version of the rendering engine corresponding to the template component data, and lower than or equal to the maximum version of the rendering engine corresponding to the template component data, using the template component data as the target template component data.
[0134] In one embodiment, the data receiving module 1003 is specifically used to: receive content template data and display content data fed back by the content server based on the template data acquisition request. The content rendering module 1007 is specifically used to: render the content template data containing the target template component data through the rendering engine to obtain a rendering template; fill the rendering template based on the display content data to obtain the rendering content.
[0135] Each module in the above content rendering device can be implemented in whole or in part by software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.
[0136] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Fig.11 As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store content template data. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, the above-mentioned content rendering method implemented by the server is implemented.
[0137] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Fig.12 As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. Among them, the processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, the content rendering method implemented by the terminal is implemented. The display unit of the computer device is used to form a visually visible image, and can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen. The input device of the computer device can be a touch layer covered on the display screen, or a button, trackball or touchpad set on the computer device casing, or an external keyboard, touchpad or mouse, etc.
[0138] Those skilled in the art will understand that Fig.11 and Fig.12The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0139] In one embodiment, a computer device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above method embodiments when executing the computer program.
[0140] In one embodiment, a computer-readable storage medium is provided, storing a computer program, which implements the steps in the above method embodiments when executed by a processor.
[0141] In one embodiment, a computer program product or computer program is provided, the computer program product or computer program includes computer instructions, the computer instructions are stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the steps in the above-mentioned method embodiments.
[0142] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions.
[0143] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.
[0144] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0145] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A content rendering method, characterized in that: The method comprises: Receive a template data acquisition request sent by a display terminal; Based on the template data acquisition request, searching for content template data, the content template data includes at least one group of template component data, each template component data in the same group of template component data represents a different version of the same template component, and each of the template component data matches at least one version of a rendering engine; The content template data is fed back to the display terminal, and the rendering engine configured in the display terminal is used to render the content according to the template component represented by the target template component data in the content template data, and the version of the target template component data matches the version of the rendering engine configured in the display terminal.
2. The method according to claim 1, characterized in that The method further comprises: Get template development data; The language format of the template development data is converted into a domain specific language format by a conversion engine to obtain content template data.
3. The method according to claim 2, characterized in that The converting engine converts the language format of the template development data into a domain specific language format to obtain content template data, including: Performing format conversion processing on the template development data by a conversion engine to obtain format conversion data; The format conversion data is traversed, and during the traversal process, syntax conversion processing is performed on the format conversion data to obtain content template data.
4. The method according to claim 3, characterized in that The method further comprises: Determining template component data in the content template data during the traversal process; Identifying a component version of the template component data; Based on the component version, different versions of template component data of the same template component are generated to obtain a group of template component data, and according to the matching relationship between the different versions of the template component data and the rendering engine version, the matching conditions of the rendering engine are marked in the group of template component data.
5. The method according to any one of claims 1 to 4, characterized in that: The searching for content template data based on the template data acquisition request includes: Searching for content template data and display content data based on the template data acquisition request; The feeding back the content template data to the display terminal includes: Feedback the content template data and the display content data to the display terminal.
6. The method according to claim 5, characterized in that The searching of content template data and display content data based on the template data acquisition request includes: Extracting the display format information and content type information of the display terminal in the template data acquisition request; searching for content template data based on the display format information; Based on the content type information, presentation content data matching the content template data is searched.
7. A content rendering method, characterized in that: The method comprises: Send a template data acquisition request to the content server; Receive content template data fed back by the content server based on the template data acquisition request, wherein the content template data includes at least one group of template component data, each template component data in the same group of template component data represents a different version of the same template component, and each of the template component data matches at least one version of a rendering engine; Based on the configured rendering engine version, determining target template component data in the content template data that matches the rendering engine version; The target template component data is rendered using the rendering engine.
8. The method according to claim 7, characterized in that The determining, based on the configured rendering engine version, target template component data in the content template data that matches the rendering engine version comprises: Get the version of the rendering engine based on the configuration data of the rendering engine; Performing matching processing based on the version of the rendering engine and the matching condition marked in the template component data; When the version of the rendering engine meets the matching condition of the rendering engine version corresponding to the template component data, the template component data is used as the target template component data.
9. The method according to claim 8, characterized in that The matching condition of the rendering engine version includes the minimum rendering engine version and the maximum rendering engine version; When the version of the rendering engine meets the matching condition of the rendering engine version corresponding to the template component data, taking the template component data as the target template component data includes: When the version of the rendering engine is higher than or equal to the lowest version of the rendering engine corresponding to the template component data, and lower than or equal to the highest version of the rendering engine corresponding to the template component data, the template component data is used as the target template component data.
10. The method according to any one of claims 7 to 9, characterized in that: The receiving of the content template data fed back by the content server based on the template data acquisition request comprises: Receiving content template data and display content data fed back by the content server based on the template data acquisition request; The rendering of the target template component data by the rendering engine includes: Rendering the content template data including the target template component data by the rendering engine to obtain a rendering template; The rendering template is filled based on the display content data to obtain rendering content.
11. A content rendering device, characterized in that: The device comprises: A request receiving module, used to receive a template data acquisition request sent by a display terminal; A template search module, configured to search for content template data based on the template data acquisition request, wherein the content template data includes at least one set of template component data, each template component data in the same set of template component data represents a different version of the same template component, and each of the template component data matches at least one version of a rendering engine; A data feedback module is used to feed back the content template data to the display terminal. The rendering engine configured in the display terminal is used to render the content according to the template component represented by the target template component data in the content template data. The version of the target template component data matches the version of the rendering engine configured in the display terminal.
12. A content rendering device, characterized in that: The device comprises: A request sending module, used for sending a template data acquisition request to a content server; A data receiving module, configured to receive content template data fed back by the content server based on the template data acquisition request, wherein the content template data includes at least one group of template component data, each template component data in the same group of template component data represents a different version of the same template component, and each of the template component data matches at least one version of a rendering engine; A component identification module, used to determine, based on the configured rendering engine version, target template component data in the content template data that matches the rendering engine version; A content rendering module is used to perform content rendering on the target template component data through the rendering engine.
13. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 10 are implemented.
14. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 10 are implemented.
15. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 10 are implemented.