CN108664247A - A kind of method and device of Page Template data interaction - Google Patents

A kind of method and device of Page Template data interaction Download PDF

Info

Publication number
CN108664247A
CN108664247A CN201810385177.6A CN201810385177A CN108664247A CN 108664247 A CN108664247 A CN 108664247A CN 201810385177 A CN201810385177 A CN 201810385177A CN 108664247 A CN108664247 A CN 108664247A
Authority
CN
China
Prior art keywords
page template
request
data
page
rear end
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.)
Granted
Application number
CN201810385177.6A
Other languages
Chinese (zh)
Other versions
CN108664247B (en
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.)
Weimeng Chuangke Network Technology China Co Ltd
Original Assignee
Weimeng Chuangke Network Technology China 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 Weimeng Chuangke Network Technology China Co Ltd filed Critical Weimeng Chuangke Network Technology China Co Ltd
Priority to CN201810385177.6A priority Critical patent/CN108664247B/en
Publication of CN108664247A publication Critical patent/CN108664247A/en
Application granted granted Critical
Publication of CN108664247B publication Critical patent/CN108664247B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Human Computer Interaction (AREA)
  • Stored Programmes (AREA)

Abstract

An embodiment of the present invention provides a kind of method and device of Page Template data interaction, this method includes:By intended conversion rule by grammer that the syntax conversion of the first programming language in the Page Template of front end is the second programming language being adapted to rear end running environment;The data preview request that user sends is received, judges the request type of the data preview request;If the request type of the data preview request is page preview request, the request data to match with the data preview request is obtained;The request data got and transformed Page Template are spliced, and terminal device will be back to after splicing and in the Page Template of rear end operation, preview displaying is carried out in terminal device for the Page Template.Through the invention, the coupling for significantly reducing front end exploitation and rear end exploitation, has greatly saved the joint debugging time of front end developer and rear end developer, to greatly improve the output ratio of R&D team.

Description

A kind of method and device of Page Template data interaction
Technical field
The present invention relates to field of computer technology more particularly to a kind of method and devices of Page Template data interaction.
Background technology
With the fast development of computer technology, people’s lives increasingly be unable to do without various web applications, therefore, The function of various web applications is also stronger and stronger, and therewith, the maintenance work of web application also becomes increasingly complex.It passes Page development of uniting is that sequence executes following steps:1, module divides;2, the page and data format agreement are made;3, page logic is opened Hair and interface exploitation;4, it makes template and loads data in a template;5, page joint debugging.In the maintenance of netpage process of the prior art In, since Page Template file is generated by front end, rear end storage and merging data, for example, original html file is by front end What engineer write, then writing by script, the static page of completion is finally issued into rear end, rear end engineer needs this Html file rewrites as phtml files so that and page logic is respectively present stronger coupling in front and back end career field, because This, Page Template file needs front and back end to be safeguarded respectively, and front and back end engineer is required for the modification page respectively.
In realizing process of the present invention, inventor has found that at least there are the following problems in the prior art:In the prior art, net The code release management of page front and back end often not in the same code library, will cause front and back end engineer in modification content of pages When, easy to produce contradiction, the ditch flux of maintenance of netpage is larger, therefore, most of technical research working time, all will consumption because In the Page Template maintenance work that demand is changed and system defect generates, the efficiency of research and development of webpage is significantly reduced.
Invention content
The embodiment of the present invention provides a kind of method and device of Page Template data interaction, realizes front end exploitation and rear end The decoupling of exploitation improves development efficiency.
On the one hand, an embodiment of the present invention provides a kind of methods of Page Template data interaction, including:
It is and rear end operation by the syntax conversion of the first programming language in the Page Template of front end by intended conversion rule The grammer of second programming language of environment adaptation;
The data preview request that user sends is received, judges the request type of the data preview request;
If the request type of the data preview request is page preview request, acquisition and the data preview request phase Matched request data;
The request data got and transformed Page Template are spliced, and will be run after splicing and in rear end Page Template be back to terminal device, preview displaying is carried out in terminal device for the Page Template.
On the other hand, an embodiment of the present invention provides a kind of devices of Page Template data interaction, including:
Converting unit, for passing through intended conversion rule by the syntax conversion of the first programming language in the Page Template of front end Grammer for the second programming language being adapted to rear end running environment runs for the Page Template in rear end;
Judging unit, the data preview request for receiving user's transmission, judges the request class of the data preview request Type;
First acquisition unit, if for the data preview request request type be page preview ask, obtain with The request data that the data preview request matches;
Splicing and returning unit, for the request data got and transformed Page Template to be spliced, and will After splicing and rear end operation Page Template be back to terminal device, for the Page Template in terminal device into Row preview is shown.
Above-mentioned technical proposal has the advantages that:Through the invention, front end developer can simply and easily by The web page template write is submitted to server and is used for rear end developer;It can be according to the demand of front end developer in front end The spliced displayed page of page presentation, the development efficiency to improve front end developer provide necessary premise guarantee;Pole The earth reduces front end exploitation and the coupling of rear end exploitation has further greatly saved front end developer and rear end The joint debugging time of developer, the efficiency of exploitation is improved, to greatly improve the output ratio of R&D team.
Description of the drawings
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with Obtain other attached drawings according to these attached drawings.
Fig. 1 is a kind of method flow diagram of Page Template data interaction in one embodiment of the invention;
Fig. 2 is a kind of apparatus structure schematic diagram of Page Template data interaction in another embodiment of the present invention;
Fig. 3 is system overall architecture schematic diagram in one embodiment of the present invention;
Fig. 4 is web page template flow path switch schematic diagram in one embodiment of the present invention;
Fig. 5 is system tool collection configuration diagram in one embodiment of the present invention;
Fig. 6 is working-flow schematic diagram in one embodiment of the present invention.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation describes, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
As shown in Figure 1, for a kind of method of Page Template data interaction in the embodiment of the present invention, including:
101, it is and rear end by the syntax conversion of the first programming language in the Page Template of front end by intended conversion rule The grammer of second programming language of running environment adaptation;
102, the data preview request that user sends is received, judges the request type of the data preview request;
If 103, the request type of the data preview request is that page preview is asked, acquisition is asked with the data preview Seek the request data to match;
104, the request data got and transformed Page Template are spliced, and will be after splicing and in rear end The Page Template of operation is back to terminal device, and preview displaying is carried out in terminal device for the Page Template.
Preferably, described to be by the syntax conversion of the first programming language in the Page Template of front end by intended conversion rule The grammer for the second programming language being adapted to rear end running environment, including:
The Page Template of front end is stored into the first server of rear end, and is arranged and converts in the Page Template of front end Label white list;
For each label in the Page Template of front end, judge current label whether in the label white list;
If so, by the grammer that the syntax conversion of the first programming language of current label is second programming language.
Optionally, described to be by the syntax conversion of the first programming language in the Page Template of front end by intended conversion rule After the step of grammer for the second programming language being adapted to rear end running environment, further include:
Transformed Page Template is stored into the second server of rear end;
Wherein, it before described the step of being spliced the request data got and transformed Page Template, also wraps It includes:
Transformed Page Template is obtained from the second server.
Optionally, further include:
Determine each branch's file in transformed Page Template;
The merging request for receiving user asks to determine each branch's file to be combined according to the merging;
By the trunk file in each branch's Piece file mergence to transformed Page Template to be combined.
Optionally, further include:
Pre-set the merging permission of user;
Wherein, before described each determining branch's file to be combined according to merging request, further include:
Determine the merging permission of the user;
The user is allowed to execute union operation according to the judgement of the merging permission of the user.
It is appreciated that if not allowing the user to execute union operation according to the judgement of the merging permission of the user, It is asked to determine that each branch's file and its subsequent step to be combined are no longer executed according to the merging.
As shown in Fig. 2, for a kind of device of Page Template data interaction in the embodiment of the present invention, including:
Converting unit 21, for being turned the grammer of the first programming language in the Page Template of front end by intended conversion rule It is changed to the grammer for the second programming language being adapted to rear end running environment;
Judging unit 22, the data preview request for receiving user's transmission, judges the request of the data preview request Type;
First acquisition unit 23 obtains if the request type for the data preview request is page preview request The request data to match with the data preview request;
Splicing and returning unit 24, for the request data got and transformed Page Template to be spliced, and It will be back to terminal device after splicing and in the Page Template of rear end operation, for the Page Template in terminal device Carry out preview displaying.
Preferably, the converting unit, including:
For storing the Page Template of front end into the first server of rear end, and the page of front end is arranged in setup module The label white list converted in face die plate;
First judgment module, for for front end Page Template in each label, judge current label whether In the label white list;
Conversion module is used for if so, being second programming language by the syntax conversion of the first programming language of current label The grammer of speech.
Optionally, described device further includes:
Storage unit, for storing the transformed Page Template of the converting unit to the second server of rear end;
Second acquisition unit, for obtaining transformed Page Template from the second server and being sent to the splicing And returning unit.
Optionally, described device further includes:
First determination unit, for determining each branch's file in transformed Page Template;
Second determination unit, the merging for receiving user are asked, and determine that each is to be combined according to merging request Branch's file;
Combining unit, for the trunk in each branch's Piece file mergence to transformed Page Template to be combined is literary Part.
Optionally, described device further includes:
Unit is pre-seted, the merging permission for pre-seting user;
Wherein, second determination unit is additionally operable to asked to determine each branch to be combined according to the merging Before file, the merging permission of the user is determined, allow the user to execute conjunction according to the judgement of the merging permission of the user And it operates.
Above-mentioned technical proposal of the embodiment of the present invention has the advantages that:Through the invention, front end developer can The web page template write simply and easily is submitted to server to use for rear end developer;It can be according to front end developer Demand show spliced displayed page in front end page, the development efficiency to improve front end developer provides necessary Premise guarantee;It significantly reduces front end exploitation and the coupling of rear end exploitation has further greatly saved front end exploitation The joint debugging time of personnel and rear end developer, the efficiency of exploitation is improved, to greatly improve the output of R&D team Than.
Above-mentioned technical proposal of the embodiment of the present invention is described in detail below in conjunction with application example:
Application example of the present invention aims at the decoupling of front end exploitation and rear end exploitation, improves development efficiency.
As shown in Figure 1, in the maintenance system of website A, front end developer writes the Page Template of webpage A, such as Jade (Java Agent DEvelopment Framework, a kind of high-performance template engine) template, then, as user passes through click Switching button in human-computer interaction interface, or detect that Page Template writes completion, or detect that Page Template is changed Afterwards, by intended conversion rule by the first programming language in the Page Template of webpage A, such as JS (JavaScript, a kind of literal translation formula Script), syntax conversion be the second programming language being adapted to the rear end running environment of webpage A, such as PHP (Hypertext Preprocessor, a kind of general script of increasing income), grammer, for transformed Jade templates in the rear end of website A It is run in server;Then, the data preview request that receiving front-end developer sends, judges the request of the data preview request Type, if the request type of the data preview request is page preview request, what acquisition matched with the data preview request Request data;Then, the request data got and transformed Jade templates are spliced, and will splicing after in webpage A Back-end server operation Jade templates be back to terminal device, preview is carried out in terminal device for the Page Template Displaying, to realize the request results page that front end developer's preview and the page request match.Wherein, request of data is asked It includes page request and interface requests to seek type, when the request type of request of data is interface requests, acquisition and interface requests The request data to match, and return to the request data to match with interface requests.
It should be noted that in the operational process after website A reaches the standard grade, pass through man-machine friendship when receiving page browsing user When the request of data that the operation at mutual interface is sent, the server of website A judges the request type of the request of data, if the data are asked When the request type asked is page request, the request data to match with the request of data is obtained;Then, the request that will be got Data are spliced with transformed Jade templates, and the spliced page is back to the terminal device that browsing user uses, For final displayed page is presented to browsing user.
In a preferred embodiment, step 101 by intended conversion rule by the first programming language in the Page Template of front end The syntax conversion of speech is the grammer for the second programming language being adapted to rear end running environment, including:The Page Template of front end is deposited In storage to the first server of rear end, and the label white list converted in the Page Template of front end is set;For the page of front end Whether each label in template judges current label in the label white list;If so, the first of current label is compiled The syntax conversion of Cheng Yuyan is the grammer of second programming language.
For example, front end developer writes the Page Template of webpage A, such as Jade templates, then, by the Jade templates of front end It stores to the first server of the rear end of webpage A, such as change server, in, and the mark converted in the Jade templates of front end is set Sign white list;In the maintenance system of website A, for each label in the Jade templates of front end, current label is judged, such as Whether the label " var " of JS language is in the label white list;If so, being PHP's by the JS syntax conversions of current label " var " Grammer can such as " $ " run for transformed Jade templates in rear end.It should be noted that those skilled in the art can The label white list converted to understand, in the Page Template of front end is arranged for the label of the first programming language, in website It, can be by the work(for the grammer that the syntax conversion of the first programming language of current label is the second programming language during practical O&M It can be realized by way of being packaged into crossover tool, therefore can be arranged in the Page Template of front end in crossover tool and convert Label white list so that front end developer's can more simply and efficiently complete work.
In a preferred embodiment, by intended conversion rule by the grammer of the first programming language in the Page Template of front end After the step of being converted to the grammer for the second programming language being adapted to rear end running environment, further include:By the transformed page Template is stored into the second server of rear end.
Wherein, it before described the step of being spliced the request data got and transformed Page Template, also wraps It includes:Transformed Page Template is obtained from the second server.
For example, front end developer writes the Page Template of webpage A, such as Jade templates, in the maintenance system of website A, By intended conversion rule by the grammer that the syntax conversion of JS in the Page Template of webpage A is PHP, and by transformed Jade moulds Plate is stored to the second server of rear end, such as SVN (Subversion, the version control system of open source code) server, with Afterwards, the request of data that receiving front-end developer sends, judges the request type of the request of data, if the request of the request of data When type is page request, the request data to match with the request of data is obtained, and transformed Jade moulds are obtained from SVN Plate;Then, the request data got is spliced with the transformed Jade templates got, and by spliced Jade Template is back to terminal device, for being shown in terminal device.
It should be noted that those skilled in the art are it can be appreciated that the second server of rear end can be scheduled generation Code warehouse, SVN and GitHub (one towards increase income and the hosted platform of privately owned software project) etc., though it can be with specific in the present invention Rear end second server for illustrate, but do not limit herein.
In a preferred embodiment, this method further includes:Determine each branch's file in transformed Page Template;It connects The merging request for receiving user asks to determine each branch's file to be combined according to the merging;By each point to be combined Trunk file in branch Piece file mergence to transformed Page Template.
For example, in the maintenance system of website A, determine that branch's file in Jade templates includes branch's file 1, branch's text Part 2 and branch's file 3, according to the self-defined demand of front end developer, in the human-computer interaction interface of the maintenance system of website A Determine that branch's file to be combined in transformed Jade templates is branch's file 2 and branch's file 3, then by branch's file 2 and branch's file 3 be incorporated into the trunk file in transformed Jade templates.
It should be noted that those skilled in the art are it can be appreciated that trunk code is for new function in code storage Exploitation, the defect problem that branch code is used to solve to generate in item Path, after finding defect problem, code storage will be from master It is dry to generate branch's file, and defect repair is done on branch's file, when different developers executes defect repair, Different branch's files will be generated, it is therefore, final to need to solve the problems, such as branch's Piece file mergences of different reparations to trunk file, For solving each defect problem in trunk file.In an embodiment of the present invention, front end developer can be to writing The Page Template of front end modify, be based on code storage, the corresponding branch's file of Page Template will be generated after the completion of modification.
In a preferred embodiment, this method further includes:Pre-set the merging permission of user.
Wherein, before described each determining branch's file to be combined according to merging request, further include:Determine institute State the merging permission of user;The user is allowed to execute union operation according to the judgement of the merging permission of the user.
For example, in the maintenance system of website A, the merging permission of user is pre-seted, user U is such as arranged is directed to business The merging permission of Business is to allow to merge, after the merging for business Business for receiving front end user U is asked, It determines that the merging permission that user U is directed to business Business is to allow to merge, branch to be combined is determined according to merging request File is branch's file 2 and branch's file 3, and then, branch's file 2 and branch's file 3 during which is asked, which are incorporated into, to be turned The trunk file in Jade templates after changing;If it is determined that user U is not allow to merge for the merging permission of business Business, Then judge not allow user U to execute union operation, then according to the merging ask to determine each branch's file to be combined and its Subsequent step no longer executes.
In a concrete application scene, as shown in figure 3, for the system overall architecture schematic diagram of maintenance of netpage system WebOS, For the back-end services of WebOS systems, it is main it is to be processed be page request and interface requests that user sends, asked in the processing page Request data same Page Template again is first obtained when asking and returns to user after being spliced such as Jade templates, and is presented on browsing In device.WebOS systems are using the method for automation by front end Jade template synchronous to rear end, the flow path switch of front end Jade templates Schematic diagram is as shown in figure 4, the process of template switch is accomplished that converts the Jade templates that front end can parse by Transformation Service At the analysable templates of PHP.Transformation Service is converted in the form of white list, and the template that can directly generate conversion is submitted To specified code storage.For the ease of the operation of front-end person who, each function is integrated into the system of WebOS different Realized in tool, tool set framework as shown in figure 5, the tool set framework of WebOS systems can be divided into client and server-side, In, client be accomplished that system initialization, template submit and preview function;Server-side uses multi-process management, mainly carries For functions such as automation structure, Template Manager, Transformation Service, preview service, log services.The tool set of WebOS systems combines Product, user oriented include mainly following product function:Jade template switchs, branch's file close trunk and user authority management; Wherein, Jade template switchs provide core conversion function, what realization can parse front end page template switch at rear end Page Template is simultaneously submitted to specified directory;Branch's file closes the coupled problem that trunk further solves page management;User weighs Service line is then finely divided by limit management function, greatly ensure that the legitimacy of user's operation.The workflow of the system of WebOS Journey figure is as shown in Figure 6.
An embodiment of the present invention provides a kind of device of Page Template data interaction, the method that above-mentioned offer may be implemented is real Example is applied, concrete function realizes the explanation referred in embodiment of the method, and details are not described herein.
It should be understood that the particular order or level of the step of during disclosed are the examples of illustrative methods.Based on setting Count preference, it should be appreciated that in the process the step of particular order or level can be in the feelings for the protection domain for not departing from the disclosure It is rearranged under condition.Appended claim to a method is not illustratively sequentially to give the element of various steps, and not It is to be limited to the particular order or level.
In above-mentioned detailed description, various features are combined together in single embodiment, to simplify the disclosure.No This published method should be construed to reflect such intention, that is, the embodiment of theme claimed needs to compare The more features of feature clearly stated in each claim.On the contrary, as appended claims is reflected Like that, the present invention is in the state fewer than whole features of disclosed single embodiment.Therefore, appended claims It is hereby expressly incorporated into detailed description, wherein each claim is used as alone the individual preferred embodiment of the present invention.
For so that any technical staff in the art is realized or using the present invention, above to disclosed embodiment into Description is gone.To those skilled in the art;The various modifications mode of these embodiments will be apparent from, and this The General Principle of text definition can also be suitable for other embodiments on the basis of not departing from the spirit and scope of the disclosure. Therefore, the disclosure is not limited to embodiments set forth herein, but most wide with principle disclosed in the present application and novel features Range is consistent.
Described above includes the citing of one or more embodiments.Certainly, in order to describe above-described embodiment and description portion The all possible combination of part or method is impossible, but it will be appreciated by one of ordinary skill in the art that each implementation Example can do further combinations and permutations.Therefore, embodiment described herein is intended to cover fall into the appended claims Protection domain in all such changes, modifications and variations.In addition, with regard to the term used in specification or claims The mode that covers of "comprising", the word is similar to term " comprising ", just as " including " solved in the claims as link word As releasing.In addition, the use of any one of specification in claims term "or" being to indicate " non-exclusionism Or ".
Those skilled in the art will also be appreciated that the various illustrative components, blocks that the embodiment of the present invention is listed (illustrative logical block), unit and step can pass through the knot of electronic hardware, computer software, or both Conjunction is realized.To clearly show that the replaceability (interchangeability) of hardware and software, above-mentioned various explanations Property component (illustrative components), unit and step universally describe their function.Such work( Can be that the design requirement for depending on specific application and whole system is realized by hardware or software.Those skilled in the art Can be for each specific function of applying, the realization of various methods can be used described, but this realization is understood not to Range beyond protection of the embodiment of the present invention.
Various illustrative logical blocks or unit described in the embodiment of the present invention can by general processor, Digital signal processor, application-specific integrated circuit (ASIC), field programmable gate array or other programmable logic devices, discrete gate Or described function is realized or is operated in transistor logic, the design of discrete hardware components or any of the above described combination.General place It can be microprocessor to manage device, and optionally, which may be any traditional processor, controller, microcontroller Device or state machine.Processor can also be realized by the combination of computing device, such as digital signal processor and microprocessor, Multi-microprocessor, one or more microprocessors combine a digital signal processor core or any other like configuration To realize.
The step of method described in the embodiment of the present invention or algorithm can be directly embedded into hardware, processor execute it is soft The combination of part module or the two.Software module can be stored in RAM memory, flash memory, ROM memory, EPROM storages Other any form of storaging mediums in device, eeprom memory, register, hard disk, moveable magnetic disc, CD-ROM or this field In.Illustratively, storaging medium can be connect with processor, so that processor can read information from storaging medium, and It can be to storaging medium stored and written information.Optionally, storaging medium can also be integrated into processor.Processor and storaging medium can To be set in ASIC, ASIC can be set in user terminal.Optionally, processor and storaging medium can also be set to use In different components in the terminal of family.
In one or more illustrative designs, above-mentioned function described in the embodiment of the present invention can be in hardware, soft Part, firmware or the arbitrary of this three combine to realize.If realized in software, these functions can store and computer-readable On medium, or with one or more instruction or code form be transmitted on the medium of computer-readable.Computer readable medium includes electricity Brain storaging medium and convenient for allow computer program to be transferred to from a place telecommunication media in other places.Storaging medium can be with It is that any general or special computer can be with the useable medium of access.For example, such computer readable media may include but It is not limited to RAM, ROM, EEPROM, CD-ROM or other optical disc storage, disk storage or other magnetic storage devices or other What can be used for carry or store with instruct or data structure and it is other can be by general or special computer or general or specially treated The medium of the program code of device reading form.In addition, any connection can be properly termed computer readable medium, example Such as, if software is to pass through a coaxial cable, fiber optic cables, double from a web-site, server or other remote resources Twisted wire, Digital Subscriber Line (DSL) are defined with being also contained in for the wireless way for transmitting such as example infrared, wireless and microwave In computer readable medium.The disk (disk) and disk (disc) includes compress disk, radium-shine disk, CD, DVD, floppy disk And Blu-ray Disc, disk is usually with magnetic duplication data, and disk usually carries out optical reproduction data with laser.Combinations of the above It can also be included in computer readable medium.
Above-described specific implementation mode has carried out further the purpose of the present invention, technical solution and advantageous effect It is described in detail, it should be understood that the foregoing is merely the specific implementation mode of the present invention, is not intended to limit the present invention Protection domain, all within the spirits and principles of the present invention, any modification, equivalent substitution, improvement and etc. done should all include Within protection scope of the present invention.

Claims (10)

1. a kind of method of Page Template data interaction, which is characterized in that including:
It is and rear end running environment by the syntax conversion of the first programming language in the Page Template of front end by intended conversion rule The grammer of second programming language of adaptation;
The data preview request that user sends is received, judges the request type of the data preview request;
If the request type of the data preview request is page preview request, acquisition matches with the data preview request Request data;
The request data got and transformed Page Template are spliced, and will be after splicing and in the page of rear end operation Face die plate is back to terminal device, and preview displaying is carried out in terminal device for the Page Template.
2. according to the method described in claim 1, it is characterized in that, it is described by intended conversion rule by the Page Template of front end In the first programming language syntax conversion be the second programming language being adapted to rear end running environment grammer, including:
The Page Template of front end is stored into the first server of rear end, and the label converted in the Page Template of front end is set White list;
For each label in the Page Template of front end, judge current label whether in the label white list;
If so, by the grammer that the syntax conversion of the first programming language of current label is second programming language.
3. method according to claim 1 or 2, which is characterized in that it is described by intended conversion rule by the page of front end The step of syntax conversion of the first programming language is the grammer for the second programming language being adapted to rear end running environment in template it Afterwards, further include:
Transformed Page Template is stored into the second server of rear end;
Wherein, before described the step of being spliced the request data got and transformed Page Template, further include:
Transformed Page Template is obtained from the second server.
4. according to the method described in claim 1, it is characterized in that, further including:
Determine each branch's file in transformed Page Template;
The merging request for receiving user asks to determine each branch's file to be combined according to the merging;
By the trunk file in each branch's Piece file mergence to transformed Page Template to be combined.
5. according to the method described in claim 4, it is characterized in that, further including:
Pre-set the merging permission of user;
Wherein, before described each determining branch's file to be combined according to merging request, further include:
Determine the merging permission of the user;
The user is allowed to execute union operation according to the judgement of the merging permission of the user.
6. a kind of device of Page Template data interaction, which is characterized in that including:
Converting unit, for by intended conversion rule by the syntax conversion of the first programming language in the Page Template of front end be with The grammer of second programming language of rear end running environment adaptation;
Judging unit, the data preview request for receiving user's transmission, judges the request type of the data preview request;
First acquisition unit, if for the data preview request request type be page preview ask, obtain with it is described The request data that data preview request matches;
Splicing and returning unit, for the request data got and transformed Page Template to be spliced, and will splicing It is back to terminal device afterwards and in the Page Template of rear end operation, is carried out in advance in terminal device for the Page Template Look at displaying.
7. device according to claim 6, which is characterized in that the converting unit, including:
For storing the Page Template of front end into the first server of rear end, and the page mould of front end is arranged in setup module The label white list converted in plate;
First judgment module, for for each label in the Page Template of front end, judging current label whether described In label white list;
Conversion module is used for if so, being second programming language by the syntax conversion of the first programming language of current label Grammer.
8. the device described according to claim 6 or 7, which is characterized in that further include:
Storage unit, for storing the transformed Page Template of the converting unit into the second server of rear end;
Second acquisition unit, for obtaining transformed Page Template from the second server and being sent to the splicing and return Receipt member.
9. device according to claim 6, which is characterized in that further include:
First determination unit, for determining each branch's file in transformed Page Template;
Second determination unit, the merging for receiving user are asked, and merge each determining point to be combined of request according to described Branch file;
Combining unit is used for the trunk file in each branch's Piece file mergence to transformed Page Template to be combined.
10. device according to claim 9, which is characterized in that further include:
Unit is pre-seted, the merging permission for pre-seting user;
Wherein, second determination unit is additionally operable to asked to determine each branch's file to be combined according to the merging Before, the merging permission for determining the user allows the user to execute and merges behaviour according to the judgement of the merging permission of the user Make.
CN201810385177.6A 2018-04-26 2018-04-26 Page template data interaction method and device Active CN108664247B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810385177.6A CN108664247B (en) 2018-04-26 2018-04-26 Page template data interaction method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810385177.6A CN108664247B (en) 2018-04-26 2018-04-26 Page template data interaction method and device

Publications (2)

Publication Number Publication Date
CN108664247A true CN108664247A (en) 2018-10-16
CN108664247B CN108664247B (en) 2022-02-01

Family

ID=63781152

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810385177.6A Active CN108664247B (en) 2018-04-26 2018-04-26 Page template data interaction method and device

Country Status (1)

Country Link
CN (1) CN108664247B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110297999A (en) * 2019-05-09 2019-10-01 京东方科技集团股份有限公司 A kind of web page template generation method and device, webpage loading method and front-end server and Website server
CN113672214A (en) * 2021-07-16 2021-11-19 微梦创科网络科技(中国)有限公司 Template sharing method and device
CN113703746A (en) * 2021-08-23 2021-11-26 风变科技(深圳)有限公司 Course development method and device, computer equipment and storage medium
CN117082683A (en) * 2023-10-13 2023-11-17 深圳市千岩科技有限公司 Spliced lamp effect application and playing method and device, equipment and medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102163233A (en) * 2011-04-18 2011-08-24 北京神州数码思特奇信息技术股份有限公司 Method and system for converting webpage markup language format
US20120030562A1 (en) * 2010-07-30 2012-02-02 Hon Hai Precision Industry Co., Ltd. Device and method for generating customized webpages
CN106372065A (en) * 2016-10-27 2017-02-01 新疆大学 Method and system for developing multi-language website

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120030562A1 (en) * 2010-07-30 2012-02-02 Hon Hai Precision Industry Co., Ltd. Device and method for generating customized webpages
CN102163233A (en) * 2011-04-18 2011-08-24 北京神州数码思特奇信息技术股份有限公司 Method and system for converting webpage markup language format
CN106372065A (en) * 2016-10-27 2017-02-01 新疆大学 Method and system for developing multi-language website

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110297999A (en) * 2019-05-09 2019-10-01 京东方科技集团股份有限公司 A kind of web page template generation method and device, webpage loading method and front-end server and Website server
CN113672214A (en) * 2021-07-16 2021-11-19 微梦创科网络科技(中国)有限公司 Template sharing method and device
CN113672214B (en) * 2021-07-16 2024-04-05 微梦创科网络科技(中国)有限公司 Template sharing method and device
CN113703746A (en) * 2021-08-23 2021-11-26 风变科技(深圳)有限公司 Course development method and device, computer equipment and storage medium
CN113703746B (en) * 2021-08-23 2024-05-14 风变科技(深圳)有限公司 Course development method, course development device, computer equipment and storage medium
CN117082683A (en) * 2023-10-13 2023-11-17 深圳市千岩科技有限公司 Spliced lamp effect application and playing method and device, equipment and medium
CN117082683B (en) * 2023-10-13 2024-01-05 深圳市千岩科技有限公司 Spliced lamp effect application and playing method and device, equipment and medium

Also Published As

Publication number Publication date
CN108664247B (en) 2022-02-01

Similar Documents

Publication Publication Date Title
CN108664247A (en) A kind of method and device of Page Template data interaction
CN110825362A (en) Low-code application software development system and method
CN104111826B (en) A kind of software project development method and device
Brown et al. The Architecture of Open Source Applications: Elegance, Evolution, and a Few Fearless Hacks
CN109491653A (en) Component sharing method under micro services framework, device, electronic equipment
CN103645908B (en) Full life circle development achievement system of intemetware
CN106648682B (en) A kind of dynamic data general framework of embedded system exploitation
CN103617066A (en) Workflow engine and implementation method thereof
KR20080053293A (en) Initial server-side content rendering for client-script web pages
CN106227553B (en) For describing and executing the data driven mode of the management role in graphic user interface
US11663288B2 (en) Just-in-time front end template generation using logical document object models
CN102884507A (en) Client application and web page integration
CN107153560A (en) Version upgrading method, server and system
CN104517181A (en) Enterprise content management system and enterprise content management method for nuclear power plants
CN110019257A (en) Master/slave data library delay time processing method, device, medium and electronic equipment
CN112579929B (en) Method and device for constructing visual blockchain browser page
CN108491195A (en) Equipment controls page generation method and system
CN108351766A (en) Slave mobile device creates and modification application
CN110442492A (en) A kind of System Operation Log management method and device
CN101751332A (en) Method, device and system for simulating process of workflow middleware
CN104253790A (en) Method and equipment for page flow standardization
CN103399776A (en) Creation method and system for reusable MOCK
CN109271149A (en) A kind of method of framework single page application program
CN109960503A (en) Component development method and device based on Django framework
US9606775B2 (en) Developing rich internet application

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant