CN109388396A - Page generation method, device, computer equipment and storage medium - Google Patents
Page generation method, device, computer equipment and storage medium Download PDFInfo
- Publication number
- CN109388396A CN109388396A CN201811085805.5A CN201811085805A CN109388396A CN 109388396 A CN109388396 A CN 109388396A CN 201811085805 A CN201811085805 A CN 201811085805A CN 109388396 A CN109388396 A CN 109388396A
- Authority
- CN
- China
- Prior art keywords
- page
- template
- piecemeal
- type
- configuration parameter
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 52
- 238000004590 computer program Methods 0.000 claims description 29
- 230000003068 static effect Effects 0.000 claims description 24
- 239000000284 extract Substances 0.000 claims description 10
- 241000208340 Araliaceae Species 0.000 claims description 4
- 235000005035 Panax pseudoginseng ssp. pseudoginseng Nutrition 0.000 claims description 4
- 235000003140 Panax quinquefolius Nutrition 0.000 claims description 4
- 235000008434 ginseng Nutrition 0.000 claims description 4
- 238000011161 development Methods 0.000 abstract description 41
- 238000005516 engineering process Methods 0.000 abstract description 3
- 230000008569 process Effects 0.000 description 19
- 230000000694 effects Effects 0.000 description 11
- 238000013461 design Methods 0.000 description 7
- 230000007547 defect Effects 0.000 description 6
- 238000010586 diagram Methods 0.000 description 6
- 238000012986 modification Methods 0.000 description 6
- 230000004048 modification Effects 0.000 description 6
- 230000000007 visual effect Effects 0.000 description 5
- 230000008676 import Effects 0.000 description 4
- 238000012795 verification Methods 0.000 description 3
- 239000004744 fabric Substances 0.000 description 2
- 239000000203 mixture Substances 0.000 description 2
- 238000009877 rendering Methods 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 230000002708 enhancing effect Effects 0.000 description 1
- 235000012149 noodles Nutrition 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/38—Creation or generation of source code for implementing user interfaces
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Information Transfer Between Computers (AREA)
Abstract
This application involves a kind of page generation method, device, computer equipment and storage mediums.The described method includes: piecemeal element is obtained, according to piecemeal Element generation piecemeal template;Obtain page type corresponding with piecemeal template;Default layout page is obtained, corresponding piecemeal template is chosen according to page type respectively, default layout page is laid out according to the piecemeal template, obtains Page Template corresponding with the page type;It receives the page and generates request, obtain the page type of the page to be generated corresponding with page generation request;Corresponding Page Template is chosen according to the page type of the page to be generated, the corresponding page is generated according to the Page Template.This method is based on caching technology, the Page Template for a variety of page types being pre-created is cached, until new page to be created, just according to the page type of new page, corresponding Page Template is obtained, to generate the corresponding page, to improve page development efficiency.
Description
Technical field
This application involves field of computer technology, more particularly to a kind of page generation method, device, computer equipment and
Storage medium.
Background technique
With the rapid development of computer technology, the exploitation of various front end pages has also obtained unprecedented development, before various
End page face is emerged one after another, and more and more marketing activities are showed in front of the user in the form of the page.Therefore, the height of page development
Effect property becomes more and more important.
However, currently in order to Development allocation front end page, usually front end Developmental Engineer is according to designed by designer
Product design figure writes code, by writing complete Html (Hypertext Markup Language, a hypertext mark
Remember language) file, page development is carried out on the whole, is integrated into product finally by O&M engineer and issues.But
During page development, front end Developmental Engineer needs constantly repeatedly to be contacted with designer, O&M engineer, entire to flow
Journey is more complicated, leads to page development low efficiency, to cause the page online period elongated.Moreover, removing exploitation page by code
Face, process is comparatively laborious, has seriously affected the development efficiency of the page.
Summary of the invention
Based on this, it is necessary in view of the above technical problems, provide a kind of page generation that can be improved page development efficiency
Method, apparatus, computer equipment and storage medium.
A kind of page generation method, which comprises
Piecemeal element is obtained, according to the piecemeal Element generation piecemeal template;
Obtain page type corresponding with piecemeal template;
Default layout page is obtained, corresponding piecemeal template is chosen according to page type respectively, according to the piecemeal template
The default layout page is laid out, Page Template corresponding with the page type is obtained;
It receives the page and generates request, obtain the page type of the page to be generated corresponding with page generation request;Root
Corresponding Page Template is chosen according to the page type of the page to be generated, the corresponding page is generated according to the Page Template.
The piecemeal element includes the first piecemeal element and the second piecemeal element in one of the embodiments,;
It is described to include: according to the piecemeal Element generation piecemeal template
Default layout templates are obtained, by the first piecemeal element and the second piecemeal element in the default layout mould
It is combined on plate, obtains initial piecemeal template;
The configuration parameter for obtaining component block template to be generated carries out the initial piecemeal template according to the configuration parameter
Configuration, generates corresponding piecemeal template.
It is described in one of the embodiments, that packet is laid out to the default layout page according to the piecemeal template
It includes:
Obtain location tags of the piecemeal template in default layout page;
According to the location tags, the piecemeal template described in corresponding call by location in the default layout page.
It is described in one of the embodiments, to include: according to the corresponding page of Page Template generation
Extract the page configuration parameter of the Page Template;
It according to the page info to be generated, modifies to the page configuration parameter, obtains the modified page and match
Set parameter;
The modified page configuration parameter is imported into the Page Template, generates the corresponding page.
In one of the embodiments, the method also includes:
The Page Template for obtaining the page to be updated extracts the page configuration parameter of the Page Template;
According to the page info to be updated, the page configuration parameter is updated, the updated page is obtained and matches
Set parameter;
The updated page configuration parameter is imported into the Page Template, the update page is treated and is updated.
The page includes static page in one of the embodiments,;It is corresponding being generated according to the Page Template
After the page, further includes:
It obtains dynamic corresponding with the static page and renders file;
File is rendered according to the dynamic, the static page is converted to dynamic page.
A kind of webpage generating device, described device include:
Piecemeal template generation module, for obtaining piecemeal element, according to the piecemeal Element generation piecemeal template;
Page type obtains module, for obtaining page type corresponding with piecemeal template;
Page Template generation module chooses corresponding piecemeal according to page type respectively for obtaining default layout page
Template is laid out the default layout page according to the piecemeal template, obtains the page corresponding with the page type
Template;
Page generation module generates request for receiving the page, obtains corresponding to be generated with page generation request
The page type of the page;Corresponding Page Template is chosen according to the page type of the page to be generated, according to the page mould
Plate generates the corresponding page.
A kind of computer equipment, including memory and processor, the memory are stored with computer program, the processing
Device performs the steps of when executing the computer program
Piecemeal element is obtained, according to the piecemeal Element generation piecemeal template;
Obtain page type corresponding with piecemeal template;
Default layout page is obtained, corresponding piecemeal template is chosen according to page type respectively, according to the piecemeal template
The default layout page is laid out, Page Template corresponding with the page type is obtained;
It receives the page and generates request, obtain the page type of the page to be generated corresponding with page generation request;Root
Corresponding Page Template is chosen according to the page type of the page to be generated, the corresponding page is generated according to the Page Template.
A kind of computer readable storage medium, is stored thereon with computer program, and the computer program is held by processor
It is performed the steps of when row
Piecemeal element is obtained, according to the piecemeal Element generation piecemeal template;
Obtain page type corresponding with piecemeal template;
Default layout page is obtained, corresponding piecemeal template is chosen according to page type respectively, according to the piecemeal template
The default layout page is laid out, Page Template corresponding with the page type is obtained;
It receives the page and generates request, obtain the page type of the page to be generated corresponding with page generation request;Root
Corresponding Page Template is chosen according to the page type of the page to be generated, the corresponding page is generated according to the Page Template.
Above-mentioned page generation method, device, computer equipment and storage medium, background server are first according to the piecemeal of acquisition
Element generates piecemeal template;Obtain page type corresponding with piecemeal template;Corresponding piecemeal mould is chosen according to page type respectively
Plate is laid out default layout page according to piecemeal template, can create the Page Template of a variety of page types.It creates new
When the page, background server is according to the page type of new page, from the Page Template of a variety of page types, chooses and new page
The corresponding Page Template of page type, the corresponding page is generated according to the Page Template of selection, without going to develop by code
The page simplifies page development process, improves page development efficiency, and the exploitation for overcoming the page in the prior art needs basis
Design drawing writes code, causes the defect that development process is cumbersome.Meanwhile the intuitive layout for understanding full page is realized, and
The effect modified on entire visual page further improves page development efficiency.
Detailed description of the invention
Fig. 1 is the application scenario diagram of page generation method in one embodiment;
Fig. 2 is the flow diagram of page generation method in one embodiment;
The flow diagram of the step of Fig. 3 is in one embodiment according to piecemeal Element generation piecemeal template;
Fig. 4 is the flow diagram of page generation method in another embodiment;
Fig. 5 is the structural block diagram of webpage generating device in one embodiment;
Fig. 6 is the internal structure chart of computer equipment in one embodiment.
Specific embodiment
It is with reference to the accompanying drawings and embodiments, right in order to which the objects, technical solutions and advantages of the application are more clearly understood
The application is further elaborated.It should be appreciated that specific embodiment described herein is only used to explain the application, not
For limiting the application.
Page generation method provided by the present application can be applied in application environment as shown in Figure 1.Wherein, mobile whole
End 110 is communicated with background server 120 by network.Mobile terminal 110 is mounted with application program.Background server 120
Multiple piecemeal elements are obtained by internet, utilize piecemeal Element generation piecemeal template;It identifies piecemeal template, obtains and piecemeal mould
The corresponding page type of plate;Corresponding piecemeal template is chosen according to page type respectively, according to piecemeal template to default layout page
Face is laid out, and obtains Page Template corresponding with page type.Background server 120 receives the page that mobile terminal 110 is sent
Face, which generates, requests, and the parsing page generates request, obtains the page type of the page to be generated corresponding with page generation request, according to
The page type of the page to be generated chooses corresponding Page Template, generates the corresponding page according to Page Template.Background server
The page of generation is sent to mobile terminal 110 by 120, the page generated by the display of the corresponding application program of mobile terminal 110.
Wherein, mobile terminal 110 can be, but not limited to be smart phone and portable wearable device, and background server 120 can be used
The server cluster of independent server either multiple servers composition is realized.
In one embodiment, as shown in Fig. 2, providing a kind of page generation method, it is applied in Fig. 1 in this way
It is illustrated for background server, comprising the following steps:
Step S201 obtains piecemeal element, according to piecemeal Element generation piecemeal template.
Background server obtains a variety of piecemeal elements from internet.Piecemeal element refers to text, picture etc., can be used to compile
Volume.What piecemeal template referred to being made of the piecemeals element such as picture, text, the template that can be shown on the page, such as magnet
Template.Piecemeal template is a kind of independent template, can edit and reuse again.
Step S202 obtains page type corresponding with piecemeal template.
The page is made of multiple piecemeal templates, different page types, for example life insurance is insured the page, and vehicle insurance is insured the page
Deng corresponding piecemeal template is different, i.e., piecemeal template configuration has corresponding page type.Background server obtains piecemeal template
Content page type corresponding with piecemeal template is obtained according to the corresponding relationship of the content of piecemeal template and page type.Have
Conducive to subsequent background server according to different page types, piecemeal template corresponding with page type is chosen, to create difference
The corresponding Page Template of page type.
Step S203 obtains default layout page, corresponding piecemeal template is chosen according to page type respectively, according to piecemeal
Template is laid out default layout page, obtains Page Template corresponding with page type.
Default layout page is a kind of blank page frame, and adjustable display scale, piecemeal template can be in default cloth
It freely pulls and sorts on office's page, to form the Page Template of different page types.
Background server extracts blank page frame from history page, as default layout page, and stores to this
In ground database.Background server transfers default layout page from local data base, respectively according to page type, selection and page
The corresponding piecemeal template of noodles type;Piecemeal template is freely pulled and sorted on default layout page, is obtained and page type
Corresponding Page Template, facilitate it is subsequent the corresponding page is generated according to Page Template, further improve efficiency of page generation.
Step S204 receives the page and generates request, obtains the classes of pages of the page to be generated corresponding with page generation request
Type;Corresponding Page Template is chosen according to the page type of the page to be generated, the corresponding page is generated according to Page Template.
Background server receives the page that mobile terminal is sent and generates request, and the parsing page generates request, obtains and the page
Generate the page type for requesting the corresponding page to be generated.From the Page Template of a variety of page types, obtain and page to be generated
The corresponding Page Template of the page type in face.Background server is generated according to the page and is requested, can to the Page Template progress of acquisition
It is modified depending on changing, such as modification picture size, color etc., to generate the corresponding page.When needing to generate the page, background server
Corresponding Page Template is transferred according to the page type of the page to be generated, the corresponding page is generated according to Page Template, is simplified
Page development process improves page development efficiency.
In above-mentioned page generation method, background server is according to the piecemeal Element generation piecemeal template of acquisition;It obtains and divides
The corresponding page type of block template;Corresponding piecemeal template is chosen according to page type respectively, according to piecemeal template to default cloth
Office's page is laid out, and can create the Page Template of a variety of page types.When creating new page, background server is according to new
The page type of the page chooses page mould corresponding with the page type of new page from the Page Template of a variety of page types
Plate generates the corresponding page according to the Page Template of selection, without removing the exploitation page by code, simplifies page development stream
Journey improves page development efficiency, and the exploitation for overcoming the page in the prior art needs to write code according to design drawing, causes out
The cumbersome defect of hair process.Meanwhile the intuitive layout for understanding full page is realized, and carry out on entire visual page
The effect of modification further improves page development efficiency.
In one embodiment, as shown in figure 3, being specifically included according to the step of piecemeal Element generation piecemeal template:
Step S301 obtains default layout templates, by the first piecemeal element and the second piecemeal element in default layout templates
On be combined, obtain initial piecemeal template.
Default layout templates are a kind of blank piecemeal template, adjustable display scale.Background server is from history magnet
Blank template frame is extracted in template, as blank piecemeal template, and is stored in the local database.Piecemeal element can be pre-
If being freely combined on layout templates, to form different initial piecemeal templates.For example, the first piecemeal element is picture, the
Two piecemeal elements are text (can be title or subtitle), and on default layout templates, background server inlays text
Above picture, initial piecemeal template can be formed.
Step S302 obtains the configuration parameter of component block template to be generated, according to configuration parameter, carries out to initial piecemeal template
Configuration, generates corresponding piecemeal template.
Different piecemeal templates, corresponding configuration parameter is different, and background server is matched according to component block template to be generated
Parameter is set, initial piecemeal template is configured, corresponding piecemeal template can be generated, facilitates subsequent creation and page type pair
When the Page Template answered, corresponding piecemeal template is directly transferred from the piecemeal template of generation, without going editor real by code
It is existing, page development process is simplified, page development efficiency is further improved.
Piecemeal template is managed for convenience, background server can be divided piecemeal template according to page type
Class storage.In one embodiment, above-mentioned steps S202, after obtaining page type corresponding with piecemeal template, comprising: root
According to the page type of piecemeal template, piecemeal template classification is stored into local data base.Facilitate subsequent background server
Piecemeal template corresponding with page type carries out Page Template exploitation, further simplifies page development process, improve the page
Development efficiency.
After obtaining piecemeal template, background server piecemeal template can be carried out pulling in default layout page and
Sequence.In one embodiment, above-mentioned steps S203 is laid out default layout page according to piecemeal template, comprising: obtains
Location tags of the piecemeal template in default layout page;According to location tags, the corresponding position tune in default layout page
With piecemeal template.To realize the effect being laid out according to piecemeal template to default layout page.Further, piecemeal mould
Position of the plate in default layout page can drag, and the piecemeal template in default layout page can carry out free sequence.Root
Default layout page is laid out according to piecemeal template, can intuitively understand the layout of full page, it is dry without front end engineer
It relates to, realizes the effect modified on entire visual page, further improve page development efficiency.
In view of when generating the corresponding page according to Page Template, developer needs to modify to Page Template,
In order to further increase page development efficiency, can be repaired by page configuration parameter of the background server to Page Template
Change, realizes the modification to Page Template.
In one embodiment, above-mentioned steps S204, generating the corresponding page according to Page Template includes: to extract page mould
The page configuration parameter of plate;It according to page info to be generated, modifies to page configuration parameter, obtains the modified page and match
Set parameter;Modified page configuration parameter is imported into Page Template, generates the corresponding page.It insures for example, to develop life insurance
When the page, background server can insure page info according to life insurance, to the page configuration parameter of corresponding Page Template (such as
Picture size, color, text font etc.) it modifies, modified page configuration parameter is imported into Page Template, that is, is produced
The corresponding page.Without removing the exploitation page by edit code, page development process is simplified, page development efficiency is improved.
Meanwhile being modified by the page configuration parameter to Page Template, the visual edit to Page Template is realized, is conducive to
Developer intuitively understands the layout of full page.
It in view of some pages, such as the marketing activity page, needs irregularly to update, in order to improve page development to be updated
Efficiency can realize the update treated and update the page by the page configuration parameter of the Page Template of the modification page to be updated.?
In one embodiment, the page generation method further include: the Page Template for obtaining the page to be updated extracts the page of Page Template
Configuration parameter;According to page info to be updated, page configuration parameter is updated, obtains updated page configuration parameter;
Updated page configuration parameter is imported into Page Template, the update page is treated and is updated.Without again through edit code
The exploitation page is removed, renewal of the page process is simplified, improves page development efficiency.Moreover, when needing to be updated the page,
The corresponding Page Template of the page to be updated is obtained by background server, can intuitively understand the integral layout feelings of the page to be updated
Condition;It is updated by page configuration parameter of the background server to Page Template, realizes the update to the page, further increase
Page development efficiency.
In view of the page of generation includes static page, in order to improve the display effect of the page, static page can be turned
It is melted into dynamic page.In one embodiment, above-mentioned steps S204, after generating the corresponding page according to Page Template, also
It include: acquisition dynamic rendering file corresponding with static page;File is rendered according to dynamic, static page is converted to dynamic page
Face.Further, background server can also identify the page type of static page, obtain dynamic wash with watercolours corresponding with page type
File is contaminated, file is rendered according to dynamic, static page is converted to dynamic page.Dynamic rendering file is classified according to page type
It stores to local data base.File is rendered by the dynamic that background server is transferred from local data base, static page is converted
At dynamic page, the Dynamically Announce effect of the page can be enhanced.
In one embodiment, as shown in figure 4, providing another page generation method, comprising the following steps:
Step S401 obtains piecemeal element, according to piecemeal Element generation piecemeal template.
Step S402 obtains page type corresponding with piecemeal template.
Step S403 obtains default layout page, corresponding piecemeal template is chosen according to page type respectively, according to piecemeal
Template is laid out default layout page, obtains Page Template corresponding with page type.
Step S404 receives the page and generates request, obtains the classes of pages of the page to be generated corresponding with page generation request
Type;Corresponding Page Template is chosen according to the page type of the page to be generated, the corresponding page is generated according to Page Template.
Step S405 obtains dynamic corresponding with static page and renders file;File is rendered according to dynamic, by static page
It is converted to dynamic page;The page includes static page.
Above-mentioned page generation method, when creating new page, background server is according to the page type of new page, from a variety of
In the Page Template of page type, Page Template corresponding with the page type of new page is chosen, according to the Page Template of selection
The corresponding page is generated, the page is developed without going by code, simplifies page development process, improve page development efficiency,
The exploitation for overcoming the page in the prior art needs to write code according to design drawing, causes the defect that development process is cumbersome.Meanwhile
File is rendered by dynamic, static page is converted to dynamic page, the Dynamically Announce effect of the page can be enhanced.
In one embodiment, above-mentioned steps S204, after generating the corresponding page according to Page Template, further includes:
Corresponding Html page link is generated according to the page.For example, being generated using the page corresponding in conjunction with Html page create-rule
Html page link, and it is sent to mobile terminal, facilitate user clicks on links, can check the configured page, to understand page
Display situation in the application program of face in the terminal.Meanwhile full page is not sent to mobile terminal, it can be improved
Page transmission efficiency.
In order to avoid the page of generation can not normally be shown on mobile terminals, need to carry out format to the page of generation to test
Card.In one embodiment, above-mentioned steps S204, after generating the corresponding page according to Page Template, comprising: acquisition and page
The corresponding verification matching files in face;The page is verified according to verification matching files, the page of check errors is carried out again
Modification.Verification matching files are that one kind can verify the file that can the page normally show on mobile terminals.It is taken by backstage
Business device verifies the page of generation, the defect that can not normally show on mobile terminals to avoid the page of generation.
It should be understood that although each step in the flow chart of Fig. 2-4 is successively shown according to the instruction of arrow,
These steps are not that the inevitable sequence according to arrow instruction successively executes.Unless expressly stating otherwise herein, these steps
Execution there is no stringent sequences to limit, these steps can execute in other order.Moreover, at least one in Fig. 2-4
Part steps may include that perhaps these sub-steps of multiple stages or stage are not necessarily in synchronization to multiple sub-steps
Completion is executed, but can be executed at different times, the execution sequence in these sub-steps or stage is also not necessarily successively
It carries out, but can be at least part of the sub-step or stage of other steps or other steps in turn or alternately
It executes.
In one embodiment, as shown in figure 5, providing a kind of webpage generating device, comprising: piecemeal template generation module
510, page type obtains module 520, Page Template generation module 530 and page generation module 540, in which:
Piecemeal template generation module 510, for obtaining piecemeal element, according to piecemeal Element generation piecemeal template;
Page type obtains module 520, for obtaining page type corresponding with piecemeal template;
Page Template generation module 530 chooses corresponding point according to page type respectively for obtaining default layout page
Block template is laid out default layout page according to piecemeal template, obtains Page Template corresponding with page type;
Page generation module 540 generates request for receiving the page, obtains page to be generated corresponding with page generation request
The page type in face;Corresponding Page Template is chosen according to the page type of the page to be generated, is generated and is corresponded to according to Page Template
The page.
In one embodiment, piecemeal template generation module includes: original template generation unit, for obtaining default layout
First piecemeal element and the second piecemeal element are combined on default layout templates, obtain initial piecemeal template by template;Mesh
Mark template generation unit, for obtaining the configuration parameter of component block template to be generated, according to configuration parameter, to initial piecemeal template into
Row configuration, generates corresponding piecemeal template.
In one embodiment, Page Template generation module is also used to obtain position of the piecemeal template in default layout page
Set label;According to location tags, the corresponding call by location piecemeal template in default layout page.
In one embodiment, page generation module is also used to extract the page configuration parameter of Page Template;According to be generated
It at page info, modifies to page configuration parameter, obtains modified page configuration parameter;By modified page configuration
Parameter imports Page Template, generates the corresponding page.
In one embodiment, which further includes renewal of the page module, for obtaining the page to be updated
Page Template extracts the page configuration parameter of Page Template;According to page info to be updated, page configuration parameter is carried out more
Newly, updated page configuration parameter is obtained;By updated page configuration parameter import Page Template, treat update the page into
Row updates.
In one embodiment, which further includes dynamic page generation module, is used for page generation module
After generating the corresponding page according to Page Template, obtains dynamic corresponding with static page and render file;It is rendered according to dynamic
Static page is converted to dynamic page by file.
Above-mentioned each embodiment, webpage generating device is according to the piecemeal Element generation piecemeal template of acquisition;Acquisition and piecemeal
The corresponding page type of template;Corresponding piecemeal template is chosen according to page type respectively, according to piecemeal template to default layout
The page is laid out, and can create the Page Template of a variety of page types.When creating new page, according to the classes of pages of new page
Type chooses Page Template corresponding with the page type of new page, according to selection from the Page Template of a variety of page types
Page Template generates the corresponding page, without removing the exploitation page by code, simplifies page development process, improves the page and open
Efficiency is sent out, the exploitation for overcoming the page in the prior art needs to write code according to design drawing, causes development process is cumbersome to lack
It falls into.Meanwhile the intuitive layout for understanding full page, and the effect modified on entire visual page are realized, into
One step improves page development efficiency.
Specific about webpage generating device limits the restriction that may refer to above for page generation method, herein not
It repeats again.Modules in above-mentioned webpage generating device can be realized fully or partially through software, hardware and combinations thereof.On
Stating each module can be embedded in the form of hardware or independently of in the processor in computer equipment, can also store in a software form
In memory in computer equipment, the corresponding operation of the above modules is executed in order to which processor calls.
In one embodiment, a kind of computer equipment is provided, which can be server, internal junction
Composition can be as shown in Figure 6.The computer equipment include by system bus connect processor, memory, network interface and
Database.Wherein, the processor of the computer equipment is for providing calculating and control ability.The memory packet of the computer equipment
Include non-volatile memory medium, built-in storage.The non-volatile memory medium is stored with operating system, computer program and data
Library.The built-in storage provides environment for the operation of operating system and computer program in non-volatile memory medium.The calculating
The database of machine equipment is used to store the Page Template of a variety of page types.The network interface of the computer equipment is used for and outside
Terminal by network connection communication.To realize a kind of page generation method when the computer program is executed by processor.
It will be understood by those skilled in the art that structure shown in Fig. 6, only part relevant to application scheme is tied
The block diagram of structure does not constitute the restriction for the computer equipment being applied thereon to application scheme, specific computer equipment
It may include perhaps combining certain components or with different component layouts than more or fewer components as shown in the figure.
In one embodiment, a kind of computer equipment, including memory and processor are provided, which is stored with
Computer program, the processor perform the steps of when executing computer program
Piecemeal element is obtained, according to piecemeal Element generation piecemeal template;
Obtain page type corresponding with piecemeal template;
Default layout page is obtained, corresponding piecemeal template is chosen according to page type respectively, according to piecemeal template to pre-
If layout page is laid out, Page Template corresponding with page type is obtained;
It receives the page and generates request, obtain the page type of the page to be generated corresponding with page generation request;According to
The page type for generating the page chooses corresponding Page Template, generates the corresponding page according to Page Template.
In one embodiment, acquisition default layout templates are also performed the steps of when processor executes computer program,
First piecemeal element and the second piecemeal element are combined on default layout templates, obtain initial piecemeal template;Obtain to
The configuration parameter for generating piecemeal template configures initial piecemeal template according to configuration parameter, generates corresponding piecemeal mould
Plate.
In one embodiment, it is also performed the steps of when processor executes computer program and obtains piecemeal template pre-
If the location tags in layout page;According to location tags, the corresponding call by location piecemeal template in default layout page.
In one embodiment, the page for extracting Page Template is also performed the steps of when processor executes computer program
Face configuration parameter;It according to page info to be generated, modifies to page configuration parameter, obtains modified page configuration ginseng
Number;Modified page configuration parameter is imported into Page Template, generates the corresponding page.
In one embodiment, it is also performed the steps of when processor executes computer program and obtains the page to be updated
Page Template extracts the page configuration parameter of Page Template;According to page info to be updated, page configuration parameter is carried out more
Newly, updated page configuration parameter is obtained;By updated page configuration parameter import Page Template, treat update the page into
Row updates.
In one embodiment, it is also performed the steps of when processor executes computer program raw according to Page Template
After the corresponding page, obtains dynamic corresponding with static page and render file;File is rendered according to dynamic, by static page
It is converted to dynamic page.
Above-mentioned each embodiment, computer equipment simplify page development by the computer program run on processor
Process improves page development efficiency, and the exploitation for overcoming the page in the prior art needs to write code according to design drawing, causes
The cumbersome defect of development process.
In one embodiment, a kind of computer readable storage medium is provided, computer program is stored thereon with, is calculated
Machine program performs the steps of when being executed by processor
Piecemeal element is obtained, according to piecemeal Element generation piecemeal template;
Obtain page type corresponding with piecemeal template;
Default layout page is obtained, corresponding piecemeal template is chosen according to page type respectively, according to piecemeal template to pre-
If layout page is laid out, Page Template corresponding with page type is obtained;
It receives the page and generates request, obtain the page type of the page to be generated corresponding with page generation request;According to
The page type for generating the page chooses corresponding Page Template, generates the corresponding page according to Page Template.
In one embodiment, acquisition default layout mould is also performed the steps of when computer program is executed by processor
First piecemeal element and the second piecemeal element are combined on default layout templates, obtain initial piecemeal template by plate;It obtains
The configuration parameter of component block template to be generated configures initial piecemeal template according to configuration parameter, generates corresponding piecemeal mould
Plate.
In one embodiment, acquisition piecemeal template is also performed the steps of when computer program is executed by processor to exist
Location tags in default layout page;According to location tags, the corresponding call by location piecemeal template in default layout page.
In one embodiment, it is also performed the steps of when computer program is executed by processor and extracts Page Template
Page configuration parameter;It according to page info to be generated, modifies to page configuration parameter, obtains modified page configuration ginseng
Number;Modified page configuration parameter is imported into Page Template, generates the corresponding page.
In one embodiment, it is also performed the steps of when computer program is executed by processor and obtains the page to be updated
Page Template, extract the page configuration parameter of Page Template;According to page info to be updated, page configuration parameter is carried out more
Newly, updated page configuration parameter is obtained;By updated page configuration parameter import Page Template, treat update the page into
Row updates.
In one embodiment, it also performs the steps of when computer program is executed by processor according to Page Template
After generating the corresponding page, obtains dynamic corresponding with static page and render file;File is rendered according to dynamic, by static page
Face is converted to dynamic page.
Above-mentioned each embodiment, the computer program that computer readable storage medium is stored by it, simplifies the page and opens
Process is sent out, page development efficiency is improved, the exploitation for overcoming the page in the prior art needs to write code according to design drawing, makes
At the cumbersome defect of development process.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with
Relevant hardware is instructed to complete by computer program, the computer program can be stored in a non-volatile computer
In read/write memory medium, the computer program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein,
To any reference of memory, storage, database or other media used in each embodiment provided herein,
Including non-volatile and/or volatile memory.Nonvolatile memory may include read-only memory (ROM), programming ROM
(PROM), electrically programmable ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include
Random access memory (RAM) or external cache.By way of illustration and not limitation, RAM is available in many forms,
Such as static state RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram (DDRSDRAM), enhancing
Type SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM
(RDRAM), direct memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM) etc..
Each technical characteristic of above embodiments can be combined arbitrarily, for simplicity of description, not to above-described embodiment
In each technical characteristic it is all possible combination be all described, as long as however, the combination of these technical characteristics be not present lance
Shield all should be considered as described in this specification.
The several embodiments of the application above described embodiment only expresses, the description thereof is more specific and detailed, but simultaneously
It cannot therefore be construed as limiting the scope of the patent.It should be pointed out that coming for those of ordinary skill in the art
It says, without departing from the concept of this application, various modifications and improvements can be made, these belong to the protection of the application
Range.Therefore, the scope of protection shall be subject to the appended claims for the application patent.
Claims (10)
1. a kind of page generation method, which comprises
Piecemeal element is obtained, according to the piecemeal Element generation piecemeal template;
Obtain page type corresponding with piecemeal template;
Default layout page is obtained, corresponding piecemeal template is chosen according to page type respectively, according to the piecemeal template to institute
It states default layout page to be laid out, obtains Page Template corresponding with the page type;
It receives the page and generates request, obtain the page type of the page to be generated corresponding with page generation request;According to institute
The page type for stating the page to be generated chooses corresponding Page Template, generates the corresponding page according to the Page Template.
2. the method according to claim 1, wherein the piecemeal element includes the first piecemeal element and second point
Block element;
It is described according to the piecemeal Element generation piecemeal template, comprising:
Default layout templates are obtained, by the first piecemeal element and the second piecemeal element on the default layout templates
It is combined, obtains initial piecemeal template;
The configuration parameter for obtaining component block template to be generated configures the initial piecemeal template according to the configuration parameter,
Generate corresponding piecemeal template.
3. the method according to claim 1, wherein it is described according to the piecemeal template to the default layout page
Face is laid out, comprising:
Obtain location tags of the piecemeal template in default layout page;
According to the location tags, the piecemeal template described in corresponding call by location in the default layout page.
4. the method according to claim 1, wherein described generate the corresponding page according to the Page Template,
Include:
Extract the page configuration parameter of the Page Template;
It according to the page info to be generated, modifies to the page configuration parameter, obtains modified page configuration ginseng
Number;
The modified page configuration parameter is imported into the Page Template, generates the corresponding page.
5. the method according to claim 1, which is characterized in that the method also includes:
The Page Template for obtaining the page to be updated extracts the page configuration parameter of the Page Template;
According to the page info to be updated, the page configuration parameter is updated, obtains updated page configuration ginseng
Number;
The updated page configuration parameter is imported into the Page Template, the update page is treated and is updated.
6. according to the method described in claim 5, it is characterized in that, the page includes static page;According to the page
After the corresponding page of template generation, further includes:
It obtains dynamic corresponding with the static page and renders file;
File is rendered according to the dynamic, the static page is converted to dynamic page.
7. a kind of webpage generating device, which is characterized in that described device includes:
Piecemeal template generation module, for obtaining piecemeal element, according to the piecemeal Element generation piecemeal template;
Page type obtains module, for obtaining page type corresponding with piecemeal template;
Page Template generation module chooses corresponding piecemeal template according to page type respectively for obtaining default layout page,
The default layout page is laid out according to the piecemeal template, obtains Page Template corresponding with the page type;
Page generation module generates request for receiving the page, obtains the page to be generated corresponding with page generation request
Page type;Corresponding Page Template is chosen according to the page type of the page to be generated, it is raw according to the Page Template
At the corresponding page.
8. device according to claim 7, which is characterized in that the piecemeal template generation module includes:
Original template generation unit, for obtaining default layout templates, by the first piecemeal element and second piecemeal member
Element is combined on the default layout templates, obtains initial piecemeal template;
Target template generation unit, for obtaining the configuration parameter of component block template to be generated, according to the configuration parameter, to described
Initial piecemeal template is configured, and corresponding piecemeal template is generated.
9. a kind of computer equipment, including memory and processor, the memory are stored with computer program, feature exists
In the step of processor realizes method described in any one of claims 1 to 6 when executing the computer program.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program
The step of method described in any one of claims 1 to 6 is realized when being executed by processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811085805.5A CN109388396A (en) | 2018-09-18 | 2018-09-18 | Page generation method, device, computer equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811085805.5A CN109388396A (en) | 2018-09-18 | 2018-09-18 | Page generation method, device, computer equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109388396A true CN109388396A (en) | 2019-02-26 |
Family
ID=65418873
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811085805.5A Pending CN109388396A (en) | 2018-09-18 | 2018-09-18 | Page generation method, device, computer equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109388396A (en) |
Cited By (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109992730A (en) * | 2019-03-13 | 2019-07-09 | 中国平安财产保险股份有限公司 | Loose-leaf URL generation method, device, computer equipment and storage medium |
CN110209378A (en) * | 2019-04-26 | 2019-09-06 | 平安科技(深圳)有限公司 | Page generation method, device, terminal and storage medium |
CN110457026A (en) * | 2019-08-01 | 2019-11-15 | 上海麦克风文化传媒有限公司 | A kind of configurable method for updating pages |
CN110516190A (en) * | 2019-08-30 | 2019-11-29 | 深圳点猫科技有限公司 | Generate the method and apparatus of static Web page |
CN110597511A (en) * | 2019-08-19 | 2019-12-20 | 深圳木成林科技有限公司 | Page automatic generation method, system, terminal equipment and storage medium |
CN110674441A (en) * | 2019-09-02 | 2020-01-10 | 中国平安财产保险股份有限公司 | Page template configuration control method and device, computer equipment and storage medium |
CN110673846A (en) * | 2019-09-04 | 2020-01-10 | 北京泰和纬度网络技术有限公司 | Method and system for webpage blocking |
CN110780960A (en) * | 2019-09-29 | 2020-02-11 | 中至数据集团股份有限公司 | Webpage making method and system, readable storage medium and server |
CN110908657A (en) * | 2019-11-15 | 2020-03-24 | 中国人民财产保险股份有限公司 | Product generation method and device |
CN111367507A (en) * | 2020-03-11 | 2020-07-03 | 上海东普信息科技有限公司 | Page code generation method, device, equipment and storage medium |
CN112416347A (en) * | 2020-11-25 | 2021-02-26 | 中睿信数字技术有限公司 | Webpage layout method and system based on grids and dynamic magnetic tiles |
CN112486459A (en) * | 2020-11-27 | 2021-03-12 | 杭州大搜车汽车服务有限公司 | Activity page generation method and device, computer equipment and readable storage medium |
CN113419728A (en) * | 2021-06-22 | 2021-09-21 | 康键信息技术(深圳)有限公司 | Marketing page building method, marketing page building device, marketing page building equipment and storage medium |
CN114398038A (en) * | 2022-03-25 | 2022-04-26 | 深圳市维度数据科技股份有限公司 | Page construction method and device |
CN114781347A (en) * | 2022-06-21 | 2022-07-22 | 飞狐信息技术(天津)有限公司 | File processing method and system |
CN113419728B (en) * | 2021-06-22 | 2024-05-24 | 康键信息技术(深圳)有限公司 | Marketing page building method, device, equipment and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020143822A1 (en) * | 2001-01-31 | 2002-10-03 | Brid Regis Lucien Francis | Method and apparatus for applying an adaptive layout process to a layout template |
CN103019684A (en) * | 2012-11-20 | 2013-04-03 | 北京思特奇信息技术股份有限公司 | Dynamic template-based business page configuring method |
CN106021617A (en) * | 2016-07-12 | 2016-10-12 | 腾讯科技(深圳)有限公司 | Page generation method and device |
CN106980508A (en) * | 2017-04-01 | 2017-07-25 | 百度在线网络技术(北京)有限公司 | Method and apparatus for generating the page |
CN107908399A (en) * | 2017-11-14 | 2018-04-13 | 山东浪潮通软信息科技有限公司 | A kind of page development method and device |
CN108446116A (en) * | 2018-02-26 | 2018-08-24 | 平安普惠企业管理有限公司 | Generation method, device, computer equipment and the storage medium of the application program page |
-
2018
- 2018-09-18 CN CN201811085805.5A patent/CN109388396A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020143822A1 (en) * | 2001-01-31 | 2002-10-03 | Brid Regis Lucien Francis | Method and apparatus for applying an adaptive layout process to a layout template |
CN103019684A (en) * | 2012-11-20 | 2013-04-03 | 北京思特奇信息技术股份有限公司 | Dynamic template-based business page configuring method |
CN106021617A (en) * | 2016-07-12 | 2016-10-12 | 腾讯科技(深圳)有限公司 | Page generation method and device |
CN106980508A (en) * | 2017-04-01 | 2017-07-25 | 百度在线网络技术(北京)有限公司 | Method and apparatus for generating the page |
CN107908399A (en) * | 2017-11-14 | 2018-04-13 | 山东浪潮通软信息科技有限公司 | A kind of page development method and device |
CN108446116A (en) * | 2018-02-26 | 2018-08-24 | 平安普惠企业管理有限公司 | Generation method, device, computer equipment and the storage medium of the application program page |
Cited By (21)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109992730A (en) * | 2019-03-13 | 2019-07-09 | 中国平安财产保险股份有限公司 | Loose-leaf URL generation method, device, computer equipment and storage medium |
CN109992730B (en) * | 2019-03-13 | 2024-05-31 | 中国平安财产保险股份有限公司 | Method, device, computer equipment and storage medium for generating active page URL |
CN110209378A (en) * | 2019-04-26 | 2019-09-06 | 平安科技(深圳)有限公司 | Page generation method, device, terminal and storage medium |
CN110457026A (en) * | 2019-08-01 | 2019-11-15 | 上海麦克风文化传媒有限公司 | A kind of configurable method for updating pages |
CN110597511A (en) * | 2019-08-19 | 2019-12-20 | 深圳木成林科技有限公司 | Page automatic generation method, system, terminal equipment and storage medium |
CN110516190A (en) * | 2019-08-30 | 2019-11-29 | 深圳点猫科技有限公司 | Generate the method and apparatus of static Web page |
CN110674441A (en) * | 2019-09-02 | 2020-01-10 | 中国平安财产保险股份有限公司 | Page template configuration control method and device, computer equipment and storage medium |
CN110673846A (en) * | 2019-09-04 | 2020-01-10 | 北京泰和纬度网络技术有限公司 | Method and system for webpage blocking |
CN110673846B (en) * | 2019-09-04 | 2023-02-17 | 北京泰和纬度网络技术有限公司 | Method and system for webpage blocking |
CN110780960A (en) * | 2019-09-29 | 2020-02-11 | 中至数据集团股份有限公司 | Webpage making method and system, readable storage medium and server |
CN110780960B (en) * | 2019-09-29 | 2024-01-26 | 中至数据集团股份有限公司 | Webpage making method, webpage making system, readable storage medium and server |
CN110908657A (en) * | 2019-11-15 | 2020-03-24 | 中国人民财产保险股份有限公司 | Product generation method and device |
CN111367507A (en) * | 2020-03-11 | 2020-07-03 | 上海东普信息科技有限公司 | Page code generation method, device, equipment and storage medium |
CN112416347A (en) * | 2020-11-25 | 2021-02-26 | 中睿信数字技术有限公司 | Webpage layout method and system based on grids and dynamic magnetic tiles |
CN112416347B (en) * | 2020-11-25 | 2022-07-12 | 中睿信数字技术有限公司 | Webpage layout method based on grids and dynamic magnetic stickers |
CN112486459A (en) * | 2020-11-27 | 2021-03-12 | 杭州大搜车汽车服务有限公司 | Activity page generation method and device, computer equipment and readable storage medium |
CN113419728A (en) * | 2021-06-22 | 2021-09-21 | 康键信息技术(深圳)有限公司 | Marketing page building method, marketing page building device, marketing page building equipment and storage medium |
CN113419728B (en) * | 2021-06-22 | 2024-05-24 | 康键信息技术(深圳)有限公司 | Marketing page building method, device, equipment and storage medium |
CN114398038A (en) * | 2022-03-25 | 2022-04-26 | 深圳市维度数据科技股份有限公司 | Page construction method and device |
CN114781347A (en) * | 2022-06-21 | 2022-07-22 | 飞狐信息技术(天津)有限公司 | File processing method and system |
CN114781347B (en) * | 2022-06-21 | 2022-09-20 | 飞狐信息技术(天津)有限公司 | File processing method and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109388396A (en) | Page generation method, device, computer equipment and storage medium | |
CN108279932B (en) | Method and device for dynamically configuring user interface of mobile terminal | |
CN112181416B (en) | Method and device for directly generating UI code from visual manuscript | |
CN108491320A (en) | Exception analysis method, device, computer equipment and the storage medium of application program | |
CN101122899B (en) | Report generation method and device | |
CN109901834A (en) | Document file page generation method, device, computer equipment and storage medium | |
CN107329747A (en) | A kind of method and device for generating multi-threaded pattern | |
CN110851134A (en) | Low-code page design device and page design method | |
CN109840083B (en) | Webpage component template construction method and device, computer equipment and storage medium | |
CN110580174B (en) | Application component generation method, server and terminal | |
CN104407863A (en) | Abstract control model programming device and method | |
CN102306102A (en) | Method and device for automatically generating program file | |
CN111177621B (en) | Web page development method, device and system | |
WO2016005887A2 (en) | Client-side template engine and method for constructing a nested dom module for a website | |
CN104133676A (en) | Function execution method and function execution device based on scripts | |
CN102622376A (en) | Method and equipment used for merging cascading style sheet files | |
CN103176778A (en) | Method and device for webpage development | |
CN112131837A (en) | Service report configuration method, device, computer equipment and storage medium | |
CN109086040A (en) | A kind of method and system quickly generating html code | |
CN109614188A (en) | A kind of page online help method, apparatus, computer equipment and storage medium | |
CN103226475A (en) | Method and device for realizing control replacement during transcoding | |
CN109960590A (en) | A method of optimization embedded system diagnostic printing | |
CN111857782B (en) | Interface updating method and device, computer equipment and storage medium | |
CN114995790A (en) | Component development method and device, computer readable medium and electronic equipment | |
CN112015378A (en) | Skeleton screen page generation method and device, computer equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |