CN106909361A - Web development approaches and device based on masterplate engine - Google Patents

Web development approaches and device based on masterplate engine Download PDF

Info

Publication number
CN106909361A
CN106909361A CN201510979897.1A CN201510979897A CN106909361A CN 106909361 A CN106909361 A CN 106909361A CN 201510979897 A CN201510979897 A CN 201510979897A CN 106909361 A CN106909361 A CN 106909361A
Authority
CN
China
Prior art keywords
template
component
web page
label
web
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
CN201510979897.1A
Other languages
Chinese (zh)
Other versions
CN106909361B (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.)
SURFILTER NETWORK TECHNOLOGY Co Ltd
Original Assignee
SURFILTER NETWORK TECHNOLOGY 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 SURFILTER NETWORK TECHNOLOGY Co Ltd filed Critical SURFILTER NETWORK TECHNOLOGY Co Ltd
Priority to CN201510979897.1A priority Critical patent/CN106909361B/en
Publication of CN106909361A publication Critical patent/CN106909361A/en
Application granted granted Critical
Publication of CN106909361B publication Critical patent/CN106909361B/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/30Creation or generation of source code
    • G06F8/35Creation or generation of source code model driven

Landscapes

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

Abstract

The invention discloses a kind of web development approaches and device based on masterplate engine, belong to technical field of software development.Methods described includes:Component needed for being obtained from third party's framework or Component Gallery;It is packaged to the component for obtaining and according to preset format, forms component template;According to the label of component template, the component template needed for introducing, and form corresponding web page template;By default template analytics engine, web page template and the corresponding component template of web page template are parsed and the corresponding page is formed.The present invention is packaged into the component template with consolidation form by required component, can shield between the component of different frames because writing the use difference and use conflict, time of the reduction programmer to consuming in the use of component that stylistic differences bring;And web page template is write by the way of component template label, it is succinct and easy to maintain to write the code that mode is succinct efficiently, write, and then increased web development efficiency.

Description

Web development approaches and device based on masterplate engine
Technical field
The present invention relates to technical field of software development, more particularly to a kind of web development sets based on masterplate engine Into method and apparatus.
Background technology
Currently, with the fast development of Internet technology, based on browser/server (Browser/Server, Referred to as " B/S ") pattern web software developments are widely applied due to intrinsic advantage.Specifically, it is this Pattern has unified client, and the core that systemic-function is realized is focused on server, simplifies system Exploitation, safeguard and use.
In existing web switching processes, programmer needs to prepare many infrastructure components, and these infrastructure components are very Different Open Frameworks are may be from, for example:Mybatis frameworks, Spring frameworks, Dom4j kits, JqueryUI front end frames etc., the occupation mode of the component in different frames is incomplete same, therefore, right When these infrastructure components are called, programmer needs first to recognize these infrastructure components, and using corresponding side Formula, so consumes programmer's substantial amounts of time, has had a strong impact on the efficiency of web exploitations.
The content of the invention
The present invention is recognized from different frames for needing to consume the substantial amounts of time in existing web development processes The component of frame, to use corresponding application method, and then has a strong impact on the problem of web development efficiency, there is provided A kind of web development approaches and device based on masterplate engine.
The technical scheme that the present invention is proposed with regard to above-mentioned technical problem is as follows:
On the one hand, there is provided a kind of web development approaches based on masterplate engine, methods described includes:
Component needed for being obtained from third party's framework or Component Gallery;
The component to obtaining is packaged according to preset format, forms component template, the component template Including the label added for the component;
According to the label of the component template, the component template needed for introducing, and form corresponding web page template;
By default template analytics engine, described group corresponding to the web page template and the web page template Part template is parsed and is formed the corresponding page.
In the above-mentioned web development approaches based on masterplate engine of the present invention, the component of described pair of acquisition is pressed It is packaged according to preset format, forms component template, including:
The component of acquisition is relied on incorporation way, configuration mode and the application method of resource, is passed through JavaScript script modes and the corresponding component package together, and add the label of uniform rules, shape Into component template.
It is described according to the component template in the above-mentioned web development approaches based on masterplate engine of the present invention Label, the component template needed for introducing, and web page template is formed, including:
By the way of label, the corresponding component template of component needed for introducing simultaneously forms web page template.
It is described to be parsed by default template in the above-mentioned web development approaches based on masterplate engine of the present invention Engine, realization is parsed to the web page template and is formed the corresponding page, including:
The web page template is parsed by the default template analytics engine to obtain the web page template introducing Component template;
The component template for introducing, the component template for being introduced are parsed by the default template analytics engine In packaged JavaScript scripted codes;
JavaScript scripted codes to parsing are rendered and are formed page code;
The page code for being formed is returned into corresponding client, and by browsing in the client Device is parsed, and forms the corresponding page.
In the above-mentioned web development approaches based on masterplate engine of the present invention, methods described also includes:
The component template of formation is stored in component template storehouse;
The corresponding component template of component needed for being obtained from the component template storehouse.
On the other hand, there is provided a kind of web development devices based on masterplate engine, described device includes:
Acquisition module, component needed for for being obtained from third party's framework or Component Gallery;
Package module, for being packaged according to preset format to the component for obtaining, forms component template, The component template includes being the label of component addition;
Processing module, for the label according to the component template, the component template needed for introducing, and forms Corresponding web page template;
The processing module, is additionally operable to by default template analytics engine, to the web page template and described The corresponding component template of web page template is parsed and is formed the corresponding page.
In the above-mentioned web development devices based on masterplate engine of the present invention, the package module, including:
Encapsulation unit, for the component of acquisition to be relied on the incorporation way of resource, configuration mode and is made With method, by JavaScript script modes and the corresponding component package together, and unified rule are added Label then, forms component template.
In the above-mentioned web development devices based on masterplate engine of the present invention, the processing module, including:
First processing units, for by the way of label, introducing the required corresponding component template of component and shape Into web page template
In the above-mentioned web development devices based on masterplate engine of the present invention, the processing module also includes:
Resolution unit, for parsing the web page template to obtain by the default template analytics engine State the component template of web page template introducing;
The resolution unit, is additionally operable to parse the component template for introducing by the default template analytics engine, JavaScript scripted codes packaged in the component template being introduced into;
Rendering unit, for being rendered to the JavaScript scripted codes for parsing and is formed page code;
Second processing unit, for the page code for being formed to be returned into corresponding client, and passes through Browser resolves in the client, form the corresponding page.
In the above-mentioned web development devices based on masterplate engine of the present invention, described device also includes:
Memory module, for the component template of formation to be stored in component template storehouse;
The acquisition module, the corresponding component template of component needed for being additionally operable to be obtained from the component template storehouse.
The beneficial effect that technical scheme provided in an embodiment of the present invention is brought is:
By from third party's framework or Component Gallery obtain needed for component, then to obtain component according to pre- If form is packaged, component template is formed, secondly according to the label of component template, the component needed for introducing Template, and form corresponding web page template;Finally by default template analytics engine, to web page template and The corresponding component template of web page template is parsed and is formed the corresponding page.So required component is sealed The component template with consolidation form is dressed up, can be shielded between the component of different frames because writing stylistic differences The use difference brought and use conflict, reduce programmer to the time of consuming in the use of component, accelerate Web development rates;And web page template is write by the way of the component template label, write mode succinctly high The code imitate, write is succinct and easy to maintain, and then can further reduce the work in web development processes Amount, increases web development efficiency.
Brief description of the drawings
Technical scheme in order to illustrate more clearly the embodiments of the present invention, institute in being described to embodiment below The accompanying drawing for needing to use is briefly described, it should be apparent that, drawings in the following description are only the present invention Some embodiments, for those of ordinary skill in the art, on the premise of not paying creative work, Other accompanying drawings can also be obtained according to these accompanying drawings.
Fig. 1 is a kind of web development approach flow charts based on masterplate engine that the embodiment of the present invention one is provided;
Fig. 2 is that a kind of of the offer of the embodiment of the present invention one is parsed and formed to web page template and component template The method flow diagram of the corresponding page;
Fig. 3 be the embodiment of the present invention one provide one kind by template analytics engine come analyzing web page template and group The schematic flow sheet of part template;
Fig. 4 is a kind of web development approach flow charts based on masterplate engine that the embodiment of the present invention one is provided;
Fig. 5 is a kind of web development device structural representations based on masterplate engine that the embodiment of the present invention two is provided Figure;
Fig. 6 is a kind of web development device structural representations based on masterplate engine that the embodiment of the present invention two is provided Figure;
Fig. 7 is a kind of web development device structural representations based on masterplate engine that the embodiment of the present invention two is provided Figure.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing to the present invention Implementation method is described in further detail.
Embodiment one
A kind of web development approaches based on masterplate engine are the embodiment of the invention provides, referring to Fig. 1, the method Including:
Step S11, component needed for being obtained from third party's framework or Component Gallery.
In the present embodiment, the large number of infrastructure component of web exploitations needs, these components can quote the 3rd Component in square Open Framework or Component Gallery, for example:Mybatis frameworks, Spring frameworks, Dom4j works Component in tool bag, JqueryUI front end frames etc..In actual applications, obtaining with needing the same of component When, also can the corresponding dependence resource of securing component, such as JavaScript scripts, css CSSs, picture, These resources are used to render code in component in subsequent step.
Step S12, the component to obtaining is packaged according to preset format, forms component template, the assembly mould Plate includes being the label of component addition.
In the present embodiment, above-mentioned steps S12 can be realized in the following way:
The component of acquisition is relied on incorporation way, configuration mode and the application method of resource, is passed through JavaScript script modes and corresponding component package together, and add the label of uniform rules, formation group Part template.
In the present embodiment, the component of acquisition is relied on into the incorporation way of resource, configuration mode and is made With method, by JavaScript script modes and corresponding component package together, in follow-up resolution component mould During plate, can automatically be quoted according to the resource incorporation way of encapsulation, configuration mode and application method The resource of dependence, for being rendered to component code, had so both simplified called side of the programmer to component Formula, saves the web development times, turn avoid the confusion of quoting resource.
In the present embodiment, can come to be packaged the component for obtaining in the following way:
1, definitions component NameSpace and labelled component name:<Comp namespace=" xxx " Name=" grid "></comp>;
2, the resource that definitions component is introduced:<resources><Resource type=" js " name=" xxx " Value=" "/></resources>;
3, definitions component attribute:<attributes><Attribute readonly=" true " name=" xxx " Default=" "></attribute></attributes>;
4, definitions component event:<events><Event name=" xxx "/></events>;
5, definitions component method:<methods><Method name=" xx "></method></methods>;
6, definitions component encapsulation process script:<Script src=" xxxx ">Content for script</script>, in content for script Part must realize attribute defined above, event, method.
Specifically, such as following manner:
In the present embodiment, the required component for obtaining is packaged according to preset format so that the group of formation Part template possesses unified form, occupation mode and standardized label, can so eliminate difference Use difference and use conflict between the component of framework, simplify and use process, when being used for programmer, The method of calling of component is more succinct efficient.
Step S13, according to the label of component template, the component template needed for introducing, and forms corresponding webpage Template.
In the present embodiment, above-mentioned steps S13 can be realized in the following way:
By the way of label, the corresponding component template of component needed for introducing simultaneously forms web page template.
In the present embodiment, when web is write (when carrying out web exploitations), needed for being introduced with tagged manner The corresponding component template of component, forms web page template.In actual applications, the label side of component template is introduced Formula can be:<NameSpace:Labelled component name>.In actual applications, by the way of component template label To write web page template, the code that mode is succinct efficiently, write is write succinct and easy to maintain.
Step S14, by default template analytics engine, to web page template and the corresponding assembly mould of web page template Plate is parsed and is formed the corresponding page.
In the present embodiment, default template analytics engine can be used for analyzing web page template and web page template pair The component template answered, obtains the code in component template.Default template analytics engine is in component is parsed Code after, can the resource that is relied on of automatic charging assembly, and code to parsing renders, can be with Reference resource causes confusion in preventing web development processes.
Specifically, referring to Fig. 2, above-mentioned steps S14 can be realized in the following way:
Step S141, web page template introducing is obtained by default template analytics engine analyzing web page template Component template.
In the present embodiment, web page template introduces component template, default template solution by the way of label Analysis engine can parse label to recognize the component template of introducing.
Step S142, the component template for introducing, the group for being introduced are parsed by default template analytics engine JavaScript scripted codes packaged in part template.
In the present embodiment, component template is carried out the JavaScript scripted codes of component according to preset format Encapsulation, default template analytics engine can parse to component template, to obtain out group in component template The JavaScript scripted codes of part.
Step S143, the JavaScript scripted codes to parsing are rendered and are formed page code.
In the present embodiment, the JavaScript scripted codes that will be parsed are rendered and are formed page code, The page code will not show that the technology of web exploitations realizes details, i.e., will not show web page template and group The ins and outs of part template, are conducive to the secrecy to ins and outs in web development processes.
Step S144, corresponding client is returned to by the page code of formation, and by clear in client Device of looking at is parsed, and forms the corresponding page.
In the present embodiment, the formation of page code can in the server be realized, then returned to corresponding Client, (analytics engine of itself is included, it is right to can be used for by the browser in client in browser Page code is parsed) parsed, the corresponding page is formed, to complete web developments.
Specifically, referring to Fig. 3, in actual applications, by template analytics engine come analyzing web page template and group The flow of part template can be as follows:
Instructed (for example when (can be server) web access requests are received:When target.html), first Retrieval whether there is corresponding web page template (for example:Target.page), cannot be accessed if there is no then return Response message (for example:404page);If there is the web page template, then the web page template is first traveled through, with The label of each component template in web page template is obtained, these groups are then called and parsed by these labels Part template.Specifically, first judge whether the component template is existing, if it does not exist, then return assembly solution Analysis mistake, the response message of page empty occupy-place;If it is present the component template is read, and introducing should The resource that component template is relied on, then, performs and parses the JavaScript scripts that the component template obtains the component The code and resource relied on by component is rendered to code, return render after code.Judge whether Component template used is all returned and renders code accordingly, and component template parsing is continued executing with if not Process;If all returning and rendering code, integrate it is all of render code, form web page code, and return Return response message (i.e. target.html).
Referring to Fig. 4, the method also includes:
Step S15, the component template of formation is stored in component template storehouse.
In the present embodiment, can be when above-mentioned steps S12 have been performed every time, the component template storage that will be formed Exist in component template storehouse, the component template that the moment updates and accumulates in component template storehouse so works as programmer When carrying out web exploitations again, packaged component template can be preferentially obtained from component template storehouse, Web development processes are further speeded up, the development time is saved, strengthens development efficiency.
Step S16, the corresponding component template of component needed for being obtained from component template storehouse.
In the present embodiment, above-mentioned steps S16 can synchronously be carried out with above-mentioned steps S11, or, preferentially Step S16 is performed, when enough required components are not got yet after execution of step S16, is being performed S11。
Embodiment of the present invention component needed for by being obtained from third party's framework or Component Gallery, then to obtaining Component be packaged according to preset format, form component template, secondly according to the label of component template, draw Enter required component template, and form corresponding web page template;Finally by default template analytics engine, Web page template and the corresponding component template of web page template are parsed and the corresponding page is formed.So to institute Need component to be packaged into the component template with consolidation form, can shield between the component of different frames because Use difference and use conflict that stylistic differences bring are write, programmer is reduced to consuming in the use of component Time, accelerate web development rates;And web page template is write by the way of the component template label, Write the code that mode is succinct efficiently, write succinct and easy to maintain, and then can further reduce web and open Workload during hair, increases web development efficiency.
Embodiment two
The embodiment of the invention provides a kind of web development devices based on masterplate engine, referring to Fig. 5, the device Including:Acquisition module 201, package module 202 and processing module 203.
Acquisition module 201, component needed for for being obtained from third party's framework or Component Gallery.
In the present embodiment, the large number of infrastructure component of web exploitations needs, these components can quote the 3rd Component in square Open Framework or Component Gallery, for example:Mybatis frameworks, Spring frameworks, Dom4j works Component in tool bag, JqueryUI front end frames etc..In actual applications, obtaining with needing the same of component When, also can the corresponding dependence resource of securing component, such as JavaScript scripts, css CSSs, picture.
Package module 202, for being packaged according to preset format to the component for obtaining, forms component template, Component template includes being the label of component addition.
In the present embodiment, specific preset format is already mentioned above, and repeats no more here.
Processing module 203, for the label according to component template, the component template needed for introducing, and forms phase The web page template answered.
Processing module 203, is additionally operable to by default template analytics engine, to web page template and web page template pair The component template answered is parsed and is formed the corresponding page.
In the present embodiment, default template analytics engine can be used for analyzing web page template and web page template pair The component template answered, obtains the code in component template.Default template analytics engine is in component is parsed Code after, can the resource that is relied on of automatic charging assembly, and code to parsing renders, can be with Reference resource causes confusion in preventing web development processes.
Specifically, referring to Fig. 6, package module 202, including:
Encapsulation unit 212, for the component of acquisition is relied on the incorporation way of resource, configuration mode and Application method, by JavaScript script modes and corresponding component package together, and adds uniform rules Label, formed component template.
In the present embodiment, the required component for obtaining is packaged according to preset format so that the group of formation Part template possesses unified form, occupation mode and standardized label, can so eliminate difference Use difference and use conflict between the component of framework, simplify and use process, when being used for programmer, The method of calling of component is more succinct efficient.
Specifically, referring to Fig. 6, processing module 203, including:
First processing units 213, for by the way of label, the corresponding component template of component needed for introducing to be simultaneously Form web page template.
In the present embodiment, when web is write (when carrying out web exploitations), needed for being introduced with tagged manner The corresponding component template of component, forms web page template.In actual applications, the label side of component template is introduced Formula can be:<NameSpace:Labelled component name>.In actual applications, by the way of component template label To write web page template, the code that mode is succinct efficiently, write is write succinct and easy to maintain.
Specifically, referring to Fig. 6, processing module 203 also includes:
Resolution unit 223, for obtaining web page template by default template analytics engine analyzing web page template The component template of introducing.
In the present embodiment, web page template introduces component template, default template solution by the way of label Analysis engine can parse label to recognize the component template of introducing.
Resolution unit 223, is additionally operable to parse the component template for introducing by default template analytics engine, obtains JavaScript scripted codes packaged in the component template being introduced into.
In the present embodiment, component template is carried out the JavaScript scripted codes of component according to preset format Encapsulation, default template analytics engine can parse to component template, to obtain out group in component template The JavaScript scripted codes of part.
Rendering unit 233, for being rendered to the JavaScript scripted codes for parsing and is formed page generation Code.
In the present embodiment, the JavaScript scripted codes that will be parsed are rendered and are formed page code, The page code will not show that the technology of web exploitations realizes details, i.e., will not show web page template and group The ins and outs of part template, are conducive to the secrecy to ins and outs in web development processes.
Second processing unit 243, for the page code of formation to be returned into corresponding client, and by visitor Browser resolves in the end of family, form the corresponding page.
In the present embodiment, the formation of page code can in the server be realized, then returned to corresponding Client, (analytics engine of itself is included, it is right to can be used for by the browser in client in browser Page code is parsed) parsed, the corresponding page is formed, to complete web developments.
Referring to Fig. 7, the device can also include:Memory module 204.
Memory module 204, for the component template of formation to be stored in component template storehouse.
In the present embodiment, the component template of formation can be stored in component template storehouse, the moment update and Component template in accumulation component template storehouse, so when programmer carries out web again to develop, can be preferential Packaged component template is obtained from component template storehouse, web development processes are further speeded up, saved Development time, strengthen development efficiency.
Acquisition module 201, the corresponding component template of component needed for being additionally operable to be obtained from component template storehouse.
Embodiment of the present invention component needed for by being obtained from third party's framework or Component Gallery, then to obtaining Component be packaged according to preset format, form component template, secondly according to the label of component template, draw Enter required component template, and form corresponding web page template;Finally by default template analytics engine, Web page template and the corresponding component template of web page template are parsed and the corresponding page is formed.So to institute Need component to be packaged into the component template with consolidation form, can shield between the component of different frames because Use difference and use conflict that stylistic differences bring are write, programmer is reduced to consuming in the use of component Time, accelerate web development rates;And web page template is write by the way of the component template label, Write the code that mode is succinct efficiently, write succinct and easy to maintain, and then can further reduce web and open Workload during hair, increases web development efficiency.
The embodiments of the present invention are for illustration only, and the quality of embodiment is not represented.
It should be noted that:The web development devices based on masterplate engine that above-described embodiment is provided are realizing base When the web development approaches of masterplate engine, only carried out with the division of above-mentioned each functional module for example, real In the application of border, can be completed by different functional modules as needed and by above-mentioned functions distribution, will equipment Internal structure be divided into different functional modules, to complete all or part of function described above.Separately Outward, the web development devices based on masterplate engine that above-described embodiment is provided are opened with the web based on masterplate engine Forwarding method embodiment belongs to same design, and it implements process and refers to embodiment of the method, repeats no more here.
One of ordinary skill in the art will appreciate that realize all or part of step of above-described embodiment can pass through Hardware is completed, it is also possible to instruct the hardware of correlation to complete by program, described program can be stored in In a kind of computer-readable recording medium, storage medium mentioned above can be read-only storage, disk or CD etc..
Presently preferred embodiments of the present invention is the foregoing is only, is not intended to limit the invention, it is all of the invention Within spirit and principle, any modification, equivalent substitution and improvements made etc. should be included in of the invention Within protection domain.

Claims (10)

1. a kind of web development approaches based on masterplate engine, it is characterised in that methods described includes:
Component needed for being obtained from third party's framework or Component Gallery;
The component to obtaining is packaged according to preset format, forms component template, the component template Including the label added for the component;
According to the label of the component template, the component template needed for introducing, and form corresponding web page template;
By default template analytics engine, described group corresponding to the web page template and the web page template Part template is parsed and is formed the corresponding page.
2. method according to claim 1, it is characterised in that the described pair of component of acquisition according to Preset format is packaged, and forms component template, including:
The component of acquisition is relied on incorporation way, configuration mode and the application method of resource, is passed through JavaScript script modes and the corresponding component package together, and add the label of uniform rules, shape Into component template.
3. method according to claim 1, it is characterised in that the mark according to the component template Sign, the component template needed for introducing, and form web page template, including:
By the way of label, the corresponding component template of component needed for introducing simultaneously forms web page template.
4. method according to claim 1, it is characterised in that described parsing by default template is drawn Hold up, realization is parsed to the web page template and formed the corresponding page, including:
The web page template is parsed by the default template analytics engine to obtain the web page template introducing Component template;
The component template for introducing, the component template for being introduced are parsed by the default template analytics engine In packaged JavaScript scripted codes;
JavaScript scripted codes to parsing are rendered and are formed page code;
The page code for being formed is returned into corresponding client, and by browsing in the client Device is parsed, and forms the corresponding page.
5. the method according to claim any one of 1-4, it is characterised in that methods described also includes:
The component template of formation is stored in component template storehouse;
The corresponding component template of component needed for being obtained from the component template storehouse.
6. a kind of web development devices based on masterplate engine, it is characterised in that described device includes:
Acquisition module, component needed for for being obtained from third party's framework or Component Gallery;
Package module, for being packaged according to preset format to the component for obtaining, forms component template, The component template includes being the label of component addition;
Processing module, for the label according to the component template, the component template needed for introducing, and forms Corresponding web page template;
The processing module, is additionally operable to by default template analytics engine, to the web page template and described The corresponding component template of web page template is parsed and is formed the corresponding page.
7. device according to claim 6, it is characterised in that the package module, including:
Encapsulation unit, for the component of acquisition to be relied on the incorporation way of resource, configuration mode and is made With method, by JavaScript script modes and the corresponding component package together, and unified rule are added Label then, forms component template.
8. device according to claim 6, it is characterised in that the processing module, including:
First processing units, for by the way of label, introducing the required corresponding component template of component and shape Into web page template.
9. device according to claim 6, it is characterised in that the processing module, also includes:
Resolution unit, for parsing the web page template to obtain by the default template analytics engine State the component template of web page template introducing;
The resolution unit, is additionally operable to parse the component template for introducing by the default template analytics engine, JavaScript scripted codes packaged in the component template being introduced into;
Rendering unit, for being rendered to the JavaScript scripted codes for parsing and is formed page code;
Second processing unit, for the page code for being formed to be returned into corresponding client, and passes through Browser resolves in the client, form the corresponding page.
10. the device according to claim any one of 6-9, it is characterised in that described device also includes:
Memory module, for the component template of formation to be stored in component template storehouse;
The acquisition module, the corresponding component template of component needed for being additionally operable to be obtained from the component template storehouse.
CN201510979897.1A 2015-12-23 2015-12-23 Web development method and device based on template engine Active CN106909361B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510979897.1A CN106909361B (en) 2015-12-23 2015-12-23 Web development method and device based on template engine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510979897.1A CN106909361B (en) 2015-12-23 2015-12-23 Web development method and device based on template engine

Publications (2)

Publication Number Publication Date
CN106909361A true CN106909361A (en) 2017-06-30
CN106909361B CN106909361B (en) 2020-07-14

Family

ID=59200492

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510979897.1A Active CN106909361B (en) 2015-12-23 2015-12-23 Web development method and device based on template engine

Country Status (1)

Country Link
CN (1) CN106909361B (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106775768A (en) * 2017-01-13 2017-05-31 深圳市路通网络技术有限公司 Native code calls system, method and APP mixed developing systems
CN108282518A (en) * 2017-12-26 2018-07-13 阿里巴巴集团控股有限公司 A kind of customer terminal webpage generation method and device
CN108537588A (en) * 2018-03-30 2018-09-14 深圳市富途网络科技有限公司 A kind of general prize drawing management system and method
CN108681454A (en) * 2018-05-23 2018-10-19 成都淞幸科技有限责任公司 A kind of webpage visualization component development method
CN109558186A (en) * 2017-09-27 2019-04-02 阿里巴巴集团控股有限公司 A kind of page display method and device
CN109597617A (en) * 2019-01-25 2019-04-09 北京字节跳动网络技术有限公司 The method and apparatus for quickly generating the business page based on template
CN110187986A (en) * 2019-05-31 2019-08-30 深信服科技股份有限公司 A kind of command management method, system, device and computer readable storage medium
CN110533143A (en) * 2019-07-29 2019-12-03 深圳点猫科技有限公司 Generate method and apparatus, storage medium and the computer equipment of electronic card
CN110989976A (en) * 2019-11-29 2020-04-10 北京美络克思科技有限公司 Web application componentization development method based on J2EE, storage medium and electronic device
CN113760356A (en) * 2021-09-10 2021-12-07 北京百度网讯科技有限公司 Differential configuration method, device, equipment and medium of program product

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101158896A (en) * 2007-08-31 2008-04-09 南京联创科技股份有限公司 Service assemblage based on MVC and method for page moulding development WEB platform
US7779389B2 (en) * 2005-12-30 2010-08-17 Sap Ag System and method for dynamic VM settings
CN101807209A (en) * 2010-04-14 2010-08-18 深圳市同洲电子股份有限公司 Method and system for manufacturing webpage, client and server
CN101876895A (en) * 2009-04-28 2010-11-03 中国科学院计算技术研究所 Package integrated method of application software under grid computing environment
CN101916285A (en) * 2010-08-20 2010-12-15 北京新岸线网络技术有限公司 Method and device for analyzing internet web page contents
CN102063306A (en) * 2011-01-06 2011-05-18 夏春秋 Technical implementation method for application development through electronic form
CN103136201A (en) * 2011-11-22 2013-06-05 阿里巴巴集团控股有限公司 Page information display method and page information display device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7779389B2 (en) * 2005-12-30 2010-08-17 Sap Ag System and method for dynamic VM settings
CN101158896A (en) * 2007-08-31 2008-04-09 南京联创科技股份有限公司 Service assemblage based on MVC and method for page moulding development WEB platform
CN101876895A (en) * 2009-04-28 2010-11-03 中国科学院计算技术研究所 Package integrated method of application software under grid computing environment
CN101807209A (en) * 2010-04-14 2010-08-18 深圳市同洲电子股份有限公司 Method and system for manufacturing webpage, client and server
CN101916285A (en) * 2010-08-20 2010-12-15 北京新岸线网络技术有限公司 Method and device for analyzing internet web page contents
CN102063306A (en) * 2011-01-06 2011-05-18 夏春秋 Technical implementation method for application development through electronic form
CN103136201A (en) * 2011-11-22 2013-06-05 阿里巴巴集团控股有限公司 Page information display method and page information display device

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106775768A (en) * 2017-01-13 2017-05-31 深圳市路通网络技术有限公司 Native code calls system, method and APP mixed developing systems
CN109558186A (en) * 2017-09-27 2019-04-02 阿里巴巴集团控股有限公司 A kind of page display method and device
CN109558186B (en) * 2017-09-27 2022-06-28 阿里巴巴集团控股有限公司 Page display method and device
CN108282518A (en) * 2017-12-26 2018-07-13 阿里巴巴集团控股有限公司 A kind of customer terminal webpage generation method and device
CN108537588A (en) * 2018-03-30 2018-09-14 深圳市富途网络科技有限公司 A kind of general prize drawing management system and method
CN108681454A (en) * 2018-05-23 2018-10-19 成都淞幸科技有限责任公司 A kind of webpage visualization component development method
CN109597617B (en) * 2019-01-25 2022-04-05 北京字节跳动网络技术有限公司 Method and device for quickly generating service page based on template
CN109597617A (en) * 2019-01-25 2019-04-09 北京字节跳动网络技术有限公司 The method and apparatus for quickly generating the business page based on template
CN110187986A (en) * 2019-05-31 2019-08-30 深信服科技股份有限公司 A kind of command management method, system, device and computer readable storage medium
CN110187986B (en) * 2019-05-31 2023-12-29 深信服科技股份有限公司 Command management method, system, device and computer readable storage medium
CN110533143A (en) * 2019-07-29 2019-12-03 深圳点猫科技有限公司 Generate method and apparatus, storage medium and the computer equipment of electronic card
CN110989976A (en) * 2019-11-29 2020-04-10 北京美络克思科技有限公司 Web application componentization development method based on J2EE, storage medium and electronic device
CN113760356A (en) * 2021-09-10 2021-12-07 北京百度网讯科技有限公司 Differential configuration method, device, equipment and medium of program product
CN113760356B (en) * 2021-09-10 2024-03-19 北京百度网讯科技有限公司 Differential configuration method, device, equipment and medium of program product

Also Published As

Publication number Publication date
CN106909361B (en) 2020-07-14

Similar Documents

Publication Publication Date Title
CN106909361A (en) Web development approaches and device based on masterplate engine
CN109522018B (en) Page processing method and device and storage medium
US7870482B2 (en) Web browser extension for simplified utilization of web services
CN104268082B (en) The method for testing pressure and device of browser
CN109614569A (en) Page rendering method, apparatus and intelligent terminal
CN103873918B (en) Image processing method, device and terminal
CN106897251B (en) Rich text display method and device
CN108984170A (en) The multilingual rendering method of the H5 page and device
CN113126990B (en) Page development method, device, equipment and storage medium
CN103838558B (en) Website build a station system and method, access website method and webpage adaptation system
CN105095280A (en) Caching method and apparatus for browser
CN104699706A (en) Directory tree generation method, device and system
CN110532495A (en) A kind of methods of exhibiting and device of webpage information
CN104270257A (en) Network element level network management service configuration adaptive system and method based on PB and XPATH
CN104899212A (en) Webpage display method, server and system
CN102253986A (en) Method and device for improving webpage displaying effect in multiple terminals
CN116974620A (en) Application program generation method, operation method and corresponding device
CN103885878A (en) Method and device for generating browser testing script
CN109240664A (en) A kind of method and terminal acquiring user behavior information
US8832225B1 (en) Multipart encoding in data aggregation for network page generation
CN106776285A (en) Webpage front-end adjustment method and device
CN111143732A (en) Webpage rendering method and device
CN107645557B (en) Integrated application system based on business components
CN108984221B (en) Method and device for acquiring multi-platform user behavior logs
CN102694802B (en) Network access information recording method and device

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