CN106156306A - A kind of template rendering intent and device - Google Patents

A kind of template rendering intent and device Download PDF

Info

Publication number
CN106156306A
CN106156306A CN201610509611.8A CN201610509611A CN106156306A CN 106156306 A CN106156306 A CN 106156306A CN 201610509611 A CN201610509611 A CN 201610509611A CN 106156306 A CN106156306 A CN 106156306A
Authority
CN
China
Prior art keywords
slot
page template
area
editable
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.)
Pending
Application number
CN201610509611.8A
Other languages
Chinese (zh)
Inventor
王晔
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
LeTV Holding Beijing Co Ltd
LeTV eCommerce Beijing Co Ltd
Original Assignee
LeTV Holding Beijing Co Ltd
LeTV eCommerce Beijing Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by LeTV Holding Beijing Co Ltd, LeTV eCommerce Beijing Co Ltd filed Critical LeTV Holding Beijing Co Ltd
Priority to CN201610509611.8A priority Critical patent/CN106156306A/en
Publication of CN106156306A publication Critical patent/CN106156306A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

Disclosure embodiment provides the method and apparatus that a kind of template renders, and wherein, described method includes: configure at least one slot for Page Template in advance;When rendering described Page Template, each slot is converted into can editing area, described can be used for indicating configuration webpage element by editing area;The Page Template that renders of display, described in the Page Template that renders comprise described can editing area;Described can configuration webpage element in editing area, to perform webpage design operation.Disclosure embodiment improves the efficiency of maintenance of netpage, and reduces the cost of maintenance of netpage.

Description

Template rendering method and device
Technical Field
The present disclosure relates to the field of network technologies, and in particular, to a template rendering method and apparatus.
Background
After the website is released, because the types and contents of information are continuously increased and the demand of a user is continuously changed, the webpage needs to be managed so as to enhance the experience of the user when the user browses the website.
When a manager manages a webpage, only the content corresponding to the webpage can be changed, but the layout of the webpage cannot be changed, for example, a certain area of the webpage displays characters, and when the manager edits the area in a background management system, only the content of the characters can be changed; and the picture cannot be added in the area, so that the picture is displayed in the area. If the manager wants to change the web page layout, the manager needs to rely on the developer to write codes to change the web page layout, so that the workload of the developer is greatly increased, the web page maintenance cost is increased, and the web page maintenance efficiency is reduced.
Disclosure of Invention
The technical problem to be solved by the embodiments of the present disclosure is to provide a template rendering method, so as to solve the problems of high cost and low efficiency of web page maintenance in the prior art.
Correspondingly, the embodiment of the disclosure also provides a template rendering device, which is used for ensuring the realization and application of the method.
In order to solve the above problem, the present disclosure discloses a template rendering method, which specifically includes the following steps: configuring at least one slot for a page template in advance; converting each slot into an editable area when rendering the page template, wherein the editable area is used for indicating to configure a webpage element; displaying a rendered page template, the rendered page template including the editable area; configuring web page elements in the editable area to perform a web page design operation.
In order to solve the above problem, the present disclosure discloses a template rendering apparatus, specifically including: the slot configuration module is used for configuring at least one slot for the page template in advance; the area conversion module is used for converting each slot into an editable area when the page template is rendered, and the editable area is used for indicating the configuration of the webpage elements; a template display module for displaying a rendered page template, the rendered page template including the editable area; and the element configuration module is used for configuring the webpage elements in the editable area so as to execute webpage design operation.
Compared with the prior art, the embodiment of the present disclosure has the following advantages:
configuring a corresponding slot for a page template corresponding to a webpage in advance; converting the slots into editable areas when rendering the page template; displaying a page template containing an editable area, and configuring webpage elements for the editable area in the page template so as to execute the operation of webpage design; when the webpage is managed by the operator, the server can edit the webpage according to the operation of the operator, so that the webpage maintenance efficiency is greatly improved, and the webpage maintenance cost is reduced.
Drawings
In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present disclosure, and other drawings can be obtained according to the drawings without creative efforts for those skilled in the art.
FIG. 1 is a flow chart of steps of a method of template rendering according to an embodiment of the present disclosure;
FIG. 2 is a flow chart of steps of another method of stencil rendering in accordance with an embodiment of the present disclosure;
FIG. 3 is a block diagram of a template rendering apparatus according to an embodiment of the present disclosure;
fig. 4 is a block diagram of another template rendering apparatus according to an embodiment of the present disclosure.
Detailed Description
To make the objects, technical solutions and advantages of the embodiments of the present disclosure more clear, the technical solutions of the embodiments of the present disclosure will be described clearly and completely with reference to the drawings in the embodiments of the present disclosure, and it is obvious that the described embodiments are some, but not all embodiments of the present disclosure. All other embodiments, which can be derived by a person skilled in the art from the embodiments disclosed herein without making any creative effort, shall fall within the protection scope of the present disclosure.
One of the core concepts of the embodiments of the present disclosure is to provide a template rendering method and apparatus, so as to solve the problem that in the prior art, a web page manager cannot directly change a web page layout, thereby greatly reducing a web page maintenance cost and improving a web page maintenance efficiency.
Referring to fig. 1, a flowchart illustrating steps of a template rendering method according to an embodiment of the present disclosure is shown, which may specifically include the following steps:
step S101, configuring at least one slot for the page template in advance.
In the process of webpage management, in order to realize visual operation on a page template corresponding to a webpage, a server needs to configure slots for the page template in advance, an operator can execute corresponding operation on an area corresponding to the page template through the slots, and the server finishes editing the page template according to the received corresponding operation of the operator; the number of the configured slots can be determined according to the number of the areas of which the layout needs to be changed on the webpage, so that one or more configured slots can be provided.
In the embodiment of the disclosure, the page module may be a page template corresponding to a concurrently published web page, and when managing the published web page, one or more regions in the web page whose layout needs to be changed may be determined according to the actual needs of a user; after determining the area needing layout change, the server deletes the content corresponding to the one or more areas on the page template corresponding to the webpage in advance, configures the one or more areas into slots, and stores the page template, the configuration information and the page data into the database after configuration is completed, wherein the page data comprises dynamic data and static data. For example, for a published web page, the position of the search box in the web page is in the middle of the upper end of the web page, and now it is desired to move the search box to the upper right corner of the web page and let the middle of the upper end of the web page display pictures, at this time, the server may configure slots for the two areas, so that the server may complete the editing of the two areas according to the received operation of the operator.
In the embodiment of the present disclosure, the page template may also be a page template corresponding to a web page whose development is not completed, that is, in the process of developing the page, one or more regions of the page may be reserved, and then the server configures slots for the reserved one or more regions, so that in the subsequent management process, an operator may directly operate the one or more regions, and the server completes editing of the page template according to the received operation, thereby implementing changing of the layout of the page template.
Step S102, when the page template is rendered, converting each slot into an editable area, wherein the editable area is used for indicating to configure the webpage elements.
Step S103, displaying a rendered page template, wherein the rendered page template comprises the editable area.
After a slot is configured for a page template by a server, when a webpage corresponding to the page template is opened through a browser, a corresponding area of the slot configured in the page template cannot be seen; when the management system opens the page template with the configured slot, the server renders the page template to ensure that the area corresponding to the slot is a visual area and the function is editable, so that the area corresponding to the slot can be seen through the page template opened by the management system.
When the page template with the configured slots is rendered, the server can scan the page template, when the page template is scanned to contain the slots, all the scanned slots are respectively converted into editable areas, and all the editable areas are displayed in the page template after all the slots are converted into corresponding editable areas; the editable area can be displayed in different modes, for example, lines of different styles can be filled in a frame of the editable area, colors of the filled editable area and a slot area which is not configured in the page template can be different, an editable character and the like can be displayed in the editable area, the displayed editable area can indicate an operator to operate in the editable area, and the server configures webpage elements for the editable area according to the operation of the operator to realize editing of a webpage. For example, after the server configures three slots for the page template, when an operator opens the page template in the management system, and after the server receives an opening operation of the operator, the server scans the page template, so that the page can be scanned to include the three slots, then codes corresponding to the three slots are respectively replaced, the slots are converted into editable areas, and the three editable areas can be seen in the rendered page template.
In addition, when the page template is rendered, the server also renders the region of the page template, which is not provided with the slot, so that the page template displays other regions contained in the webpage; for example, after a web page comprises a search box, an animation display area, a LOGO display area, a link display area and a text display area, after a slot is configured for the LOGO display area and the area corresponding to the search box by a server, when an operator opens a page template corresponding to the web page in a management system, the server displays an editable area corresponding to the area configured with the slot and data corresponding to the animation display area, the link display area and the text display area according to the operation of the operator when the page template is opened. Therefore, the page template displayed in the management system is the same as the page template corresponding to the web page displayed in the browser, and is displayed differently only in the area where the slot is already allocated.
And step S104, configuring webpage elements in the editable area to execute webpage design operation.
The server opens a page template containing editable areas in the management system after receiving the opening operation of an operator, the operator can execute the editing operation in the management system, the server configures different webpage elements for the editable areas according to the operation of the operator, and at most one webpage element is configured in one editable area. For example, the page template includes three editable areas, where the editable area includes an editable area a, and any one of the three editable areas may be configured with any one of web page elements such as pictures, texts, links, and the like, but after configuring a picture for the editable area a, it is not possible to configure other web page elements for the editable area a, and if another web page element needs to be configured for the editable area a, the configured picture needs to be deleted, and then the editable area a can be re-edited.
The server can complete the configuration of the web page elements for the editable area according to the operation of an operator, and can also complete the editing of other areas of the page template, and the change or deletion of data of other areas, wherein the changed data type is required to correspond to the area type, for example, only text can be changed in a text display area, and pictures cannot be added.
According to the embodiment of the disclosure, when the layout of a partial region of a webpage needs to be changed, a server configures a corresponding slot for a webpage template corresponding to the webpage in advance; when the page template is rendered, the slots are converted into editable areas, so that the page template containing the editable areas is displayed in the management system, and the server can configure webpage elements for the editable areas in the page template according to the operation of management personnel so as to realize the design of the webpage; the efficiency of web page maintenance is greatly improved, and the cost of web page maintenance is reduced.
Example two
Referring to fig. 2, a flowchart illustrating steps of another template rendering method according to an embodiment of the present disclosure is shown, which may specifically include the following steps:
step S201, determining at least one preset area in the page template in advance, and determining the preset area as a slot.
In the management process of the webpage, an operator can change the layout area according to the requirement of the webpage, after the server receives the selection operation of the operator, the server determines the layout area needing to be changed corresponding to the page template corresponding to the webpage, so that the layout area needing to be changed is determined as the preset area of the page template, and as the layout area needing to be changed of the webpage can be one or more, the preset area of the page template corresponding to the webpage can be one or more, and then the preset area is determined as the slot; a page template may contain one or more slots.
In the embodiment of the disclosure, when the page template is not developed, according to the layout of the existing web page, regions where an operator may need to re-layout or regions where the operator is only allowed to change the layout are reserved in the subsequent web page management process, the regions are determined as preset regions, and then the preset regions are determined as slots.
Step S202, configuring corresponding slot identifiers for each slot, and generating a slot identifier list according to the slot identifiers.
The preset area determined in the page template in advance may be one or multiple, and therefore, the slot of the page template may be one or multiple, each different preset area corresponds to a different slot, in order to distinguish each slot, a slot identifier may be configured for each slot, each slot identifier corresponds to a slot one to one, and the slot identifier is a unique identifier for distinguishing the slot.
In the embodiment of the present disclosure, the slot identifier may include position information, where the position information is information related to a position of the area corresponding to the slot in the page template, for example, information about a position, a size, and the like of the area in the page template. And after configuring corresponding slot identifications for each slot, generating a slot identification list from all the slot identifications, wherein each piece of information in the slot identification list corresponds to one slot identification, and storing the slot identification list into a database.
Step S203, when the page template is rendered, the slot identification list is obtained.
The method comprises the steps that a manager can execute an operation of opening a page template through a management system, a server opens the page template with configured slots and slot identifiers in the management system according to the operation of the operator, and the server can obtain a slot and slot identifier list from a database when rendering the page template; then, according to the slot identification list, determining the number of slots contained in the page template; when the page template is determined to contain at least one slot, converting each slot contained in the slot identification list into an editable area according to the slot identification list; specifically, the steps of converting each slot into an editable area are as described in steps S204 to S205:
step S204, according to the slot identification obtained from the slot identification list, determining the slot corresponding to each slot identification.
One piece of information in the slot identification list corresponds to one slot identification, the slot identification can be obtained from the slot identification list, and the slot identification corresponds to the slot only, so that the corresponding slot can be determined according to the slot identification, and the slots corresponding to the slot identifications are determined according to the slot identifications in the slot identification list in sequence, so that all the slots contained in the page template are determined.
Step S205, converting the slot into an editable area by adding a style and an editable function to the slot.
After all slots contained in the page template are determined according to the slot identifiers, adding styles and editable functions to the slots in the slot identifier list one by one according to the slot identifier list, and converting the slots into editable areas, wherein the styles and the editable functions can be added to codes of the corresponding slots through codes of JAVA. The added style can be a style such as lines, colors, dynamic effects and the like even if the editable area converted from the slot has display characteristics, so that the editable area can be displayed by displaying the added style such as lines, colors, dynamic effects and the like in the displayed page template. The preset area is determined as the slot in advance, and the corresponding slot does not have the editable function, so that the editable area has the editing characteristic by adding the editable function to the slot in the process of rendering the page template, and a manager can configure the webpage elements in the editable area.
And S206, displaying a rendered page template, wherein the rendered page template comprises the editable area.
And after rendering the page template by the server, displaying the rendered page template in the management system, wherein the rendered page template comprises an editable area and other areas for configuring slots.
And step S207, adding the component to the editable area.
When an operator executes the operation of opening the page template in the management system, the server receives the opening operation of the operator and loads all components contained in the system in the management system; after a page template containing an editable area is displayed in a management system, an operator can drag a component to the editable area of the page template, and a server adds the component to the corresponding editable area according to the drag operation of the operator; then the server can open an edit box of the assembly according to the operation of the assembly triggered by the operator; the method comprises the steps that an operator can add content into a component editing frame, after the content is added, the operator clicks the saving operation, a server receives the saving operation executed by the operator, obtains and saves the content added into the component editing frame by the operator, and accordingly configuration of webpage elements is completed, wherein each editable area can be provided with one component, when any other component is added, the current component of the editable area needs to be deleted, and any other component needs to be added into the editable area.
Step S208, adding corresponding webpage elements for each type of component according to the type of the component to execute webpage design operation, wherein the type of the component at least comprises the following steps: one of a picture type, a text type, a link type, and a multimedia type.
Since the components include various types, for example: the image type, the text type, the link type, the multimedia type and the like, so that after the component is successfully added to the editable area of the page template, when the component is edited, corresponding webpage elements need to be added according to the type of the component. In the embodiment of the disclosure, each component has a unique identifier, and the function of each component is different from the format of the specified output, for example, a component of a picture type, where the type of the specified output may be gpj or bmp, and therefore, when a component is edited, whether the component of the picture type is added or a path corresponding to the picture, when a corresponding web page is generated, the editable area displays the picture, and therefore, when the component is edited, web page elements of the corresponding type are added according to different component types.
According to the embodiment of the disclosure, when the layout of a partial region of a webpage needs to be changed, a server configures a corresponding slot for a page template corresponding to the webpage in advance, and configures a corresponding slot identifier for the slot, so that the corresponding slot can be determined according to the slot identifier when a subsequent management system renders the template; when the server renders the page template, the slots are converted into editable areas by adding styles and editable functions to the slots, so that the editable areas with the editable functions are displayed when the page template is displayed in the management system; the server adds components in the editable area in the page template according to the operation of an operator, thereby configuring webpage elements for the editable area by editing the components to realize the design of the webpage; therefore, when an operator manages the webpage, the layout of the webpage is changed without rewriting codes, the webpage performs visual operation, and the server finishes editing the webpage according to the operation of the operator; therefore, the efficiency of web page maintenance is greatly improved, and the cost of web page maintenance is reduced.
It is noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the disclosed embodiments are not limited by the described order of acts, as some steps may occur in other orders or concurrently with other steps in accordance with the disclosed embodiments. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required of the disclosed embodiments.
EXAMPLE III
Referring to fig. 3, a block diagram illustrating a structure of a template rendering apparatus according to an embodiment of the present disclosure may specifically include the following modules: a slot configuration module 301, a region conversion module 302, a template display module 303, and an element configuration module 304, wherein,
the slot configuration module 301 is configured to configure at least one slot for the page template in advance.
An area conversion module 302, configured to convert each slot into an editable area when rendering the page template, where the editable area is used to indicate a configuration of a web page element.
A template display module 303, configured to display a rendered page template, where the rendered page template includes the editable area.
An element configuration module 304, configured to configure web page elements in the editable area to perform a web page design operation.
In the process of web page management, in order to implement visual operation on a page template corresponding to a web page, the slot configuration module 301 needs to configure slots for the page template in advance, where the number of configured slots may be determined according to the number of areas where layout of the web page needs to be changed, and therefore, one or more configured slots may be provided; after the slot configuration module 301 completes the configuration of the slot, when receiving an operation of opening a page template performed by an operator, the area conversion module 302 renders the page template for which the slot has been configured, and converts the slot into an editable area; after rendering is completed, the template display module 303 displays a rendered page template, where the displayed page template includes the editable area converted by the area conversion module 302; an operator may operate on the page template including the editable area, and the element configuration module 304 configures the web page elements in each editable area according to the related operation of the operator, so as to implement the editing of the page.
According to the embodiment of the disclosure, when the layout of a partial region of a webpage needs to be changed, the slot configuration module configures a corresponding slot for a page template corresponding to the webpage in advance, and the region conversion module converts the slot into an editable region when rendering the page template, so that the editable region is displayed when the template display wood block displays the page template; the element configuration module can configure webpage elements for editable areas in the page template according to the operation of a manager so as to execute the operation of webpage design; when the webpage is managed by the operator, the template rendering device can finish editing the webpage according to the operation of the operator, so that the webpage maintenance efficiency is greatly improved, and the webpage maintenance cost is reduced.
Example four
Referring to fig. 4, a block diagram of another template rendering apparatus according to an embodiment of the present disclosure is shown, wherein, in the embodiment of the present disclosure, the slot configuration module 41 includes a slot determining submodule 411 and an identification configuration submodule 412, wherein,
the slot determining submodule 411 is configured to determine at least one preset area in the page template in advance, and determine the preset area as a slot.
The identifier configuring submodule 412 is configured to configure corresponding slot identifiers for the slots, and generate a slot identifier list according to the slot identifiers.
In the process of managing the web page, an operator may change the area of the layout according to the need of the web page, and the slot determining submodule 411 determines the area of the layout to be changed corresponding to the page template corresponding to the web page according to the received selection operation of the area of the web page that the operator selects and needs to change the layout, so as to determine the area of the layout to be changed as the preset area of the page template, and then determine the preset area as the slot, where one page template may include one or more slots. After the slot determining submodule 411 determines the preset area as a slot, since there may be one or more slots in the page template, each different preset area corresponds to a different slot, in order to distinguish each slot, the identifier configuring submodule 412 may configure a slot identifier for each slot, each slot identifier corresponds to a slot one to one, the slot identifier is a unique identifier for distinguishing a slot, then, a slot identifier list is generated from all slot identifiers, each piece of information in the slot identifier list corresponds to a slot identifier, and the slot identifier list is stored in the database.
In the disclosed embodiment, the region transformation module 42 includes an acquisition submodule 421 and a transformation submodule 422, wherein,
the obtaining submodule 421 is configured to obtain the slot identifier list when rendering the page template.
The conversion sub-module 422 is configured to perform a step of converting each slot included in the slot identifier list into an editable area according to the slot identifier list.
After receiving an operation of opening a page template by an operator, before displaying the page template, the region conversion module 42 needs to render the page template, and convert the slot into an editable region; when the page template is specifically rendered, the obtaining sub-module 421 obtains slots and a slot identifier list from the database, so that the converting sub-module 422 determines whether the page template includes slots and the number of the slots according to the slot identifier list, and converts each slot into a corresponding editable area when it is determined that the page template includes slots.
In the disclosed embodiment, the conversion submodule 422 includes a first unit 4221 and a second unit 4222; wherein,
a first unit 4221, configured to determine, according to the slot identifier obtained from the slot identifier list, a slot corresponding to each slot identifier.
A second unit 4222 is configured to convert the slot into an editable area by adding a style and an editable function to the slot.
The step of the conversion submodule 422 performing conversion of each slot into a corresponding editable area is performed by the first unit 4221 and the second unit 4222, the first unit 4221 obtains a slot identifier from the slot identifier list according to the slot identifier list, and since the slot identifier is uniquely corresponding to the slot, the corresponding slot can be determined according to the slot identifier; determining all slots contained in the page template; the second unit 4222 adds styles and editable elements to the slots determined by the first unit 4221, and displays an editable area having an editable function in the page template displayed on the template display unit 43.
In the disclosed embodiment, the element configuration module 44 includes a component addition submodule 441 and an element addition submodule 442, wherein,
a component adding submodule 441, configured to add a component to the editable area;
the element adding sub-module 442 is configured to add corresponding web page elements to each type of component according to the type of the component, so as to perform a web page design operation, where the type of the component at least includes: one of a picture type, a text type, a link type, and a multimedia type.
The management system comprises a plurality of components, wherein the components comprise a plurality of types, such as a picture type, a text type, a link type and a multimedia type; when it is received that an operator drags a component to an editable area, the component adding submodule 441 adds the component dragged by the operator to the editable area, and the element adding submodule 442 adds corresponding web page elements to different components according to the operation of the operator, thereby realizing the design of a web page.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
As will be appreciated by one of skill in the art, embodiments of the present disclosure may be provided as a method, apparatus, or computer program product. Accordingly, the disclosed embodiments may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the disclosed embodiments may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and so forth) having computer-usable program code embodied therein.
Embodiments of the present disclosure are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the disclosure. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the disclosed embodiments have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the embodiments of the disclosure.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or terminal that comprises the element.
The template rendering method and the template rendering device provided by the present disclosure are introduced in detail, and specific examples are applied in the text to explain the principles and embodiments of the present disclosure, and the descriptions of the above embodiments are only used to help understand the method and the core ideas of the present disclosure; meanwhile, for a person skilled in the art, based on the idea of the present disclosure, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present disclosure should not be construed as a limitation to the present disclosure.

Claims (10)

1. A method of stencil rendering, comprising:
configuring at least one slot for a page template in advance;
converting each slot into an editable area when rendering the page template, wherein the editable area is used for indicating to configure a webpage element;
displaying a rendered page template, the rendered page template including the editable area;
configuring web page elements in the editable area to perform a web page design operation.
2. The method of claim 1, wherein the step of pre-configuring slots of a page template comprises:
determining at least one preset area in a page template in advance, and determining the preset area as a slot;
and respectively configuring corresponding slot identifications for each slot, and generating a slot identification list according to the slot identifications.
3. The method of claim 2, wherein the step of converting each slot into an editable area when rendering the page template comprises:
acquiring the slot identification list when the page template is rendered;
and according to the slot identification list, executing the step of converting each slot contained in the slot identification list into an editable area.
4. The method according to claim 3, wherein the step of converting each slot included in the slot id list into an editable area according to the slot id list comprises:
determining a slot corresponding to each slot identifier according to the slot identifier obtained from the slot identifier list;
converting the slot into an editable area by adding styles and editable functions to the slot.
5. The method of claim 1, wherein configuring the web page elements in the editable area to perform the web page design operation comprises:
adding a component to the editable area;
adding corresponding webpage elements for the components of each type according to the types of the components to execute webpage design operation, wherein the types of the components at least comprise: one of a picture type, a text type, a link type, and a multimedia type.
6. A stencil rendering apparatus, comprising:
the slot configuration module is used for configuring at least one slot for the page template in advance;
the area conversion module is used for converting each slot into an editable area when the page template is rendered, and the editable area is used for indicating the configuration of the webpage elements;
a template display module for displaying a rendered page template, the rendered page template including the editable area;
and the element configuration module is used for configuring the webpage elements in the editable area so as to execute webpage design operation.
7. The apparatus of claim 6, wherein the socket configuration template comprises:
the slot determining submodule is used for determining at least one preset area in the page template in advance and determining the preset area as a slot;
and the identification configuration submodule is used for configuring corresponding slot identifications for the slots respectively and generating a slot identification list according to the slot identifications.
8. The apparatus of claim 7, wherein the region transformation module comprises:
the obtaining submodule is used for obtaining the slot identification list when the page template is rendered;
and the conversion sub-module is used for executing the step of converting each slot contained in the slot identification list into an editable area according to the slot identification list.
9. The apparatus of claim 8, wherein the conversion submodule comprises:
the first unit is used for determining a slot corresponding to each slot identifier according to the slot identifier acquired from the slot identifier list;
a second unit for converting the slot into an editable area by adding a style and an editable function to the slot.
10. The apparatus of claim 6, wherein the element configuration module comprises:
the component adding sub-module is used for adding components to the editable area;
the element adding submodule is used for adding corresponding webpage elements for each type of assembly according to the type of the assembly so as to execute webpage design operation, wherein the type of the assembly at least comprises the following steps: one of a picture type, a text type, a link type, and a multimedia type.
CN201610509611.8A 2016-06-30 2016-06-30 A kind of template rendering intent and device Pending CN106156306A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610509611.8A CN106156306A (en) 2016-06-30 2016-06-30 A kind of template rendering intent and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610509611.8A CN106156306A (en) 2016-06-30 2016-06-30 A kind of template rendering intent and device

Publications (1)

Publication Number Publication Date
CN106156306A true CN106156306A (en) 2016-11-23

Family

ID=57350783

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610509611.8A Pending CN106156306A (en) 2016-06-30 2016-06-30 A kind of template rendering intent and device

Country Status (1)

Country Link
CN (1) CN106156306A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107895394A (en) * 2017-11-17 2018-04-10 中国平安财产保险股份有限公司 Animation effect implementation method, device, terminal device and storage medium
CN109144656A (en) * 2018-09-17 2019-01-04 广州视源电子科技股份有限公司 Method, apparatus, computer device and storage medium for multi-element layout
CN109933322A (en) * 2019-01-28 2019-06-25 平安科技(深圳)有限公司 A kind of page editing method, apparatus and computer readable storage medium
CN110058856A (en) * 2019-04-28 2019-07-26 恒生电子股份有限公司 Page configuration method and device
TWI682291B (en) * 2018-05-23 2020-01-11 中華電信股份有限公司 Webpage dynamic generating method, webpage generation apparatus and computer program product
CN112068824A (en) * 2020-09-16 2020-12-11 杭州海康威视数字技术股份有限公司 Webpage development preview method and device and electronic equipment
CN113609823A (en) * 2021-07-14 2021-11-05 Oppo广东移动通信有限公司 Method and device for editing questionnaire logic, terminal equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103207869A (en) * 2012-01-16 2013-07-17 腾讯科技(深圳)有限公司 Webpage maintenance method, system and platform
CN104572659A (en) * 2013-10-14 2015-04-29 中兴通讯股份有限公司 Method, device and terminal achieving webpage layout
CN104731787A (en) * 2013-12-18 2015-06-24 中兴通讯股份有限公司 Method, device and terminal capable of realizing page layout
CN105068815A (en) * 2015-08-24 2015-11-18 用友网络科技股份有限公司 Page editor interaction apparatus and method
CN105095445A (en) * 2015-07-24 2015-11-25 北京奇虎科技有限公司 Page generation method and system
CN105373520A (en) * 2015-10-13 2016-03-02 金蝶软件(中国)有限公司 Method and device for setting control style attributes

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103207869A (en) * 2012-01-16 2013-07-17 腾讯科技(深圳)有限公司 Webpage maintenance method, system and platform
CN104572659A (en) * 2013-10-14 2015-04-29 中兴通讯股份有限公司 Method, device and terminal achieving webpage layout
CN104731787A (en) * 2013-12-18 2015-06-24 中兴通讯股份有限公司 Method, device and terminal capable of realizing page layout
CN105095445A (en) * 2015-07-24 2015-11-25 北京奇虎科技有限公司 Page generation method and system
CN105068815A (en) * 2015-08-24 2015-11-18 用友网络科技股份有限公司 Page editor interaction apparatus and method
CN105373520A (en) * 2015-10-13 2016-03-02 金蝶软件(中国)有限公司 Method and device for setting control style attributes

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
刘彬: ""基于标签的细粒度访问控制模型研究"", 《中国优秀硕士学位论文全文数据库》 *

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107895394A (en) * 2017-11-17 2018-04-10 中国平安财产保险股份有限公司 Animation effect implementation method, device, terminal device and storage medium
CN107895394B (en) * 2017-11-17 2021-03-30 中国平安财产保险股份有限公司 Animation special effect implementation method and device, terminal equipment and storage medium
TWI682291B (en) * 2018-05-23 2020-01-11 中華電信股份有限公司 Webpage dynamic generating method, webpage generation apparatus and computer program product
CN109144656A (en) * 2018-09-17 2019-01-04 广州视源电子科技股份有限公司 Method, apparatus, computer device and storage medium for multi-element layout
CN109933322A (en) * 2019-01-28 2019-06-25 平安科技(深圳)有限公司 A kind of page editing method, apparatus and computer readable storage medium
CN109933322B (en) * 2019-01-28 2024-05-24 平安科技(深圳)有限公司 Page editing method and device and computer readable storage medium
CN110058856A (en) * 2019-04-28 2019-07-26 恒生电子股份有限公司 Page configuration method and device
CN110058856B (en) * 2019-04-28 2023-08-01 恒生电子股份有限公司 Page configuration method and device
CN112068824A (en) * 2020-09-16 2020-12-11 杭州海康威视数字技术股份有限公司 Webpage development preview method and device and electronic equipment
CN112068824B (en) * 2020-09-16 2024-07-02 杭州海康威视数字技术股份有限公司 Webpage development preview method and device and electronic equipment
CN113609823A (en) * 2021-07-14 2021-11-05 Oppo广东移动通信有限公司 Method and device for editing questionnaire logic, terminal equipment and storage medium
CN113609823B (en) * 2021-07-14 2023-12-12 Oppo广东移动通信有限公司 Method and device for editing questionnaire logic, terminal equipment and storage medium

Similar Documents

Publication Publication Date Title
CN106156306A (en) A kind of template rendering intent and device
CN109801347B (en) Method, device, equipment and medium for generating editable image template
CN111666526B (en) Page generation method, device, equipment and storage medium
CN109918607B (en) Page construction method and device, medium and computing equipment
CN110187913B (en) Method and device for issuing and running applet
US10565293B2 (en) Synchronizing DOM element references
CN113504908A (en) Business code generation method and device, electronic equipment and computer readable medium
US20150039996A1 (en) System and method for dynamically converting webpage, and computer-readable recording medium
CN105700925B (en) A kind of interface implementing method and device of APP
KR101494844B1 (en) System for Transforming Chart Using Metadata and Method thereof
CN112100550A (en) Page construction method and device
CN110705237A (en) Automatic document generation method, data processing device, and storage medium
US20170169474A1 (en) Internet-based display material system and internet-based display material producing method
CN111158687B (en) Interface generation method and device of JAVA plugin, computer equipment and storage medium
US10951486B2 (en) Terminal device, UI expansion method, and UI expansion program
CN112416328A (en) Multi-platform small program mall construction method, device, equipment and medium
CN106354490A (en) Dynamic layout method for EPG page
CN110941428B (en) Website creation method and device
CN111459501A (en) SVG-based Web configuration picture storage and display system, method and medium
CN110968314A (en) Page generation method and device
CN105786846A (en) Website platform component capable of generating modules in user-defined manner
CN111435313A (en) Method and device for changing skin of software
CN114756228A (en) Page processing method, device, equipment and storage medium
US11023089B2 (en) View port resolution independent network pages
CN117032666A (en) Page editing method and device based on editor, terminal equipment and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20161123

WD01 Invention patent application deemed withdrawn after publication