CN106708479A - Page rendering method and device - Google Patents

Page rendering method and device Download PDF

Info

Publication number
CN106708479A
CN106708479A CN201510447977.2A CN201510447977A CN106708479A CN 106708479 A CN106708479 A CN 106708479A CN 201510447977 A CN201510447977 A CN 201510447977A CN 106708479 A CN106708479 A CN 106708479A
Authority
CN
China
Prior art keywords
resource
layout
template
same name
sign
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
CN201510447977.2A
Other languages
Chinese (zh)
Other versions
CN106708479B (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.)
Hundsun Technologies Inc
Original Assignee
Hundsun Technologies Inc
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 Hundsun Technologies Inc filed Critical Hundsun Technologies Inc
Priority to CN201510447977.2A priority Critical patent/CN106708479B/en
Publication of CN106708479A publication Critical patent/CN106708479A/en
Application granted granted Critical
Publication of CN106708479B publication Critical patent/CN106708479B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a page rendering method and a device. Wherever actual locations of multiple resources are, the resources would be marked beforehand by a marking route so that the resources can be introduced in accordance with the marking route, and the change of the actual locations will not impact right introduction of the resources. Besides, a different small piece of content of the resources to be introduced is set to default layout resources and same name layout resources. Under normal circumstances, the default layout resources are ready to use. In particular cases, the same name layout resources are ready to use. Without repetition, the default layout resources and the same name layout resources conform to DRY principle. In addition, when there are special cases of multiple pages, only increasing the same name layout resources can reduce the cost of development and maintenance to ensure the accuracy of the introduction of resources.

Description

A kind of page rendering method and device
Technical field
It is to be related to a kind of page rendering method in particular the present invention relates to technical field of software engineering And device.
Background technology
Soft project be study and apply as how it is systematic, standardization, can quantify proceduring side Method goes to develop and safeguard the subject of software.From the viewpoint of software development, it is exactly to use appropriate resource (including personnel, software and hardware resources, time etc.), is one group of development activities that exploitation software is carried out, During activity end be input into (demand of user) be converted into output (finally meet user's request software product Product).
, it is necessary to meet DRY (Don ' t repeat yourself, Bu Yaochong as far as possible in software development process Multiple yourself) principle, for page treatment, it is generally the case that it is have certain similar to have many pages Property, thus some contents repeated in multiple pages are written in new file.Such as, A website is done, the content of head and afterbody in each page is identical, only centre is interior Appearance part is otherwise varied, and now traditional mode is that the content of head is put into header resources, tail The content in portion is put into footer resources, is then needing place (such as, the page wash with watercolours of these contents of reference When dye), by the way of explicit declaration (such as:include<header>, include<footer>) Carry out content introducing.
But, the way of reference of above-mentioned explicit declaration needs to provide the physical location for introducing resource during introducing, When the position of these resources or title are changed, what the test after the cost of reconstruct and reconstruct was verified Cost is higher, easily causes introducing defect.
And, under special circumstances, when some page renderings, in possible its resource to be introduced into, The major part content to be introduced is identical, but it is different, this when to have sub-fraction content again, Traditional approach then can only be the resources duplication to be introduced into a new resource, then to new resource part Modification, so, can then be present most of repeatability content with the resource to be introduced before in new resource, disobey Anti- DRY principles, when with the presence of the above-mentioned special circumstances of multiple pages, then causing to change many resources, Increased exploitation and the cost safeguarded, it is also possible to cause to introduce defect.
The content of the invention
In view of this, the invention provides one kind, with overcome in the prior art due to problem.
To achieve the above object, the present invention provides following technical scheme:
A kind of page rendering method, in advance with the sign path multiple resources of sign, including:
Render the content of template resource described in the template resource acquisition in the multiple resource;
Current directory is determined according to the sign path;
When the current directory is not root, following steps are performed:
Search whether there is the of the same name layout resource of the same name with the template resource under the current directory;
If it is present the content of the template resource is rendered into the layout resource of the same name;
If it does not exist, then searching whether there is default layout resource under the current directory;
If it is present the content of the template resource is rendered into the default layout resource;
Using a upper catalogue of the current directory as current directory.
Optionally, the sign path is /A1/…/An-1/An/ filename, wherein, A1、…、An-1、 AnThe title of the n catalogue included in the sign path, n is the integer not less than 0;filename It is the title of the resource of sign path sign.
Optionally, layout resource is internally provided with template resource placeholder.
Optionally, the content by the template resource is rendered into the layout resource of the same name, specifically Including:
The content of the template resource is rendered into the template resource placeholder in the layout resource of the same name Position.
Optionally, the content by the template resource is rendered into the default layout resource, specifically Including:
The template resource placeholder content of the template resource being rendered into the default layout resource Position.
A kind of page rendering device, including:
Sign unit, in advance with the sign path multiple resources of sign;
Rendering unit, for rendering in template resource described in the template resource acquisition in the multiple resource Hold;
And, current directory is determined according to the sign path;
And, when the current directory is not root, perform following steps:
Search whether there is the of the same name layout resource of the same name with the template resource under the current directory;
If it is present the content of the template resource is rendered into the layout resource of the same name;
If it does not exist, then searching whether there is default layout resource under the current directory;
If it is present the content of the template resource is rendered into the default layout resource;
Using a upper catalogue of the current directory as current directory.
Optionally, the sign path is /A1/…/An-1/An/ filename, wherein, A1、…、An-1、 AnThe title of the n catalogue included in the sign path, n is the integer not less than 0;filename It is the title of the resource of sign path sign.
Optionally, layout resource is internally provided with template resource placeholder.
Optionally, the rendering unit specifically for:
The content of the template resource is rendered into the template resource placeholder in the layout resource of the same name Position.
Optionally, the rendering unit specifically for:
The template resource placeholder content of the template resource being rendered into the default layout resource Position.
Understood via above-mentioned technical scheme, compared with prior art, the invention discloses a kind of page wash with watercolours Dyeing method and device, no matter the physical location of multiple resources where, is all marked with a sign path in advance Show above-mentioned multiple resources, according to sign path when such resource is introduced, the physical location change of resource Will not affect that the correct introducing of resource.And, sub-fraction content different in the resource that will be introduced into, The concept of default layout resource and layout resource of the same name is respectively provided with, in the case of no special, using silent Recognize layout resource, and under special circumstances, use layout resource of the same name, default layout resource Do not repeated with layout resource of the same name, meet DRY principles.In addition, when multiple pages have special circumstances, Only increase corresponding layout resource of the same name, reduce exploitation and the cost safeguarded, it is ensured that resource is drawn The accuracy for entering.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to reality The accompanying drawing to be used needed for example or description of the prior art is applied to be briefly described, it should be apparent that, below Accompanying drawing in description is only embodiments of the invention, for those of ordinary skill in the art, not On the premise of paying creative work, other accompanying drawings can also be obtained according to the accompanying drawing for providing.
Fig. 1 is a kind of schematic flow sheet of page rendering method disclosed in the embodiment of the present invention;
Fig. 2 is the schematic flow sheet of another page rendering method disclosed in the embodiment of the present invention;
A kind of Fig. 3 structural representations of page rendering device for the embodiment of the present invention is disclosed.
Specific embodiment
For the sake of quoting and understanding, the explanation of the technical term for hereinafter using, write a Chinese character in simplified form or summary of abridging It is as follows:
DRY principles:Do not repeat yourself, should not repeat yourself's principle, it is intended to software development In, reduce the information for repeating, when DRY principles are successfully applied, any individual element in a system Modification all need not be unrelated with its logic other elements change, additionally, logically related therewith The change of other elements be foreseeable, uniform, and keep synchronous.
Resource path (PATH):, it is necessary to use various resources in template engine, these resources exist There must be unique path during access, in order to shield separate sources difference, be both defined to all of resource Unified form, describes resource path using the file path form of Unix/Linux here.Resource road Footpath is divided into two parts, and the part behind last "/" is resource name, before, the part containing "/" It is pathname.Such as:"/aa/bb/cc/def.abc ", represents that this is a resource, and its resource name is " def.abc ", Its path is "/aa/bb/cc/ "
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out Clearly and completely describe, it is clear that described embodiment is only a part of embodiment of the invention, and It is not all, of embodiment.Based on the embodiment in the present invention, those of ordinary skill in the art are not doing Go out the every other embodiment obtained under the premise of creative work, belong to the scope of protection of the invention.
Term " first " in description and claims of this specification and above-mentioned accompanying drawing, " second " Etc. being for distinguishing similar object, without for describing specific order or precedence.Should manage Solution so term for using can be exchanged in the appropriate case, during this is only description embodiments of the invention The differentiation mode used in description to the object of same alike result.Additionally, term " including " and " tool Have " and their any deformation, it is intended that covering is non-exclusive to be included, so as to comprising a series of lists The process of unit, method, system, product or equipment are not necessarily limited to those units, but may include without clear It is listing to Chu or for these processes, method, product or other intrinsic units of equipment.
From background technology, in the prior art, the way of reference of explicit declaration needs to be given during introducing Introduce the physical location of resource, when the position of these resources or title are changed, the cost of reconstruct And the cost of the test checking after reconstruct is higher, easily causes introducing defect.And, under special circumstances, When some page renderings, in possible its resource to be introduced into, most of content to be introduced is identical , but it is different, this when to have sub-fraction content again, traditional approach then can only be will introduce Resources duplication into a new resource, then new resource is locally changed, so, new resource with Can then there is most of repeatability content in the resource to be introduced before, violate DRY principles, when there is multiple There are above-mentioned special circumstances in the page, then can cause to change many resources, increased exploitation and safeguard into This, it is also possible to cause to introduce defect.
Therefore, the invention discloses a kind of page rendering method and device, no matter the actual bit of multiple resources Put where, above-mentioned multiple resources are all indicated with a sign path in advance, when such resource is introduced according to Sign path, the physical location change of resource will not affect that the correct introducing of resource.And, will Sub-fraction content different in the resource to be introduced into, is respectively provided with default layout resource and layout of the same name The concept of resource, in the case of no special, using default layout resource, and under special circumstances, Using layout resource of the same name, default layout resource and layout resource of the same name are not repeated, and meet DRY former Then.In addition, when multiple pages have special circumstances, only increase corresponding layout resource of the same name, Reduce exploitation and the cost safeguarded, it is ensured that the accuracy that resource is introduced.
To enable the above objects, features and advantages of the present invention more obvious understandable, below in conjunction with the accompanying drawings The present invention is further detailed explanation with specific embodiment.
Accompanying drawing 1 is referred to, is a kind of schematic flow sheet of page rendering method disclosed in the embodiment of the present invention.
, it is necessary in advance with the sign path multiple resources of sign before page rendering is carried out, i.e. no By the physical location of above-mentioned multiple resources be in local file, or in ftp server, or In Web server, or in the compressed files such as Jar, zip or in relational database, NoSql In database database, finally must all be indicated with a unique sign path..With After one sign path multiple resource of sign, no matter the original path of certain resource where, if its Sign path is identical, then it represents that be same resource.
After in advance with the sign path multiple resources of sign, the page rendering method is specifically included Following steps:
S101:Render the content of template resource described in the template resource acquisition in the multiple resource.
The type of resource has two kinds, and one kind is layout resource, a kind of to make the template resource, template resource to carry out After rendering, resource lookup is laid out according to rule is rendered, finds and be suitably laid out after resource, mould The content of plate resource is rendered into layout resource.
S102:Current directory is determined according to the sign path.
S103:Search whether there is the of the same name layout of the same name with the template resource under the current directory Resource, if it does not, step S104 is being performed, if it is present performing step S105.
In the present embodiment, it is necessary to sub-fraction content different in the resource that will be introduced into advance, difference Default layout resource and layout resource of the same name are set, at most of conditions (i.e. in the case of no special), Using default layout resource, on rare occasion (i.e. in particular cases), provided using layout of the same name Source, default layout resource and layout resource of the same name are not repeated, and meet DRY principles.In addition, when many When the individual page has special circumstances, only increase corresponding layout resource of the same name, reduce exploitation and tie up The cost of shield, it is ensured that the accuracy that resource is introduced.
S104:Search whether there is default layout resource under the current directory, if it is present performing Step S106, if it does not exist, then performing step S107.
During page rendering, special circumstances are first determined whether, if special circumstances, then pressed The mode of special circumstances is processed, if no special situation, is just processed by no special situation.
S105:The content of the template resource is rendered into the layout resource of the same name.
S106:The content of the template resource is rendered into the default layout resource.
S107:Judge whether the current directory is root, if it is not, then with the current directory A upper catalogue as current directory, and return execution step S103, if it is, rendering end.
Present embodiment discloses a kind of page rendering method, though the physical location of multiple resources where, Above-mentioned multiple resources are all indicated with a sign path in advance, according to sign path when such resource is introduced Can, the physical location change of resource will not affect that the correct introducing of resource.And, the money that will be introduced Sub-fraction content different in source, is respectively provided with the concept of default layout resource and layout resource of the same name, In the case of no special, using default layout resource, and under special circumstances, layout of the same name is used Resource, default layout resource and layout resource of the same name are not repeated, and meet DRY principles.In addition, working as When there are special circumstances in multiple pages, only increase it is corresponding it is of the same name layout resource, reduce exploitation with The cost of maintenance, it is ensured that the accuracy that resource is introduced.
Accompanying drawing 2 is referred to, is that the flow of another page rendering method disclosed in the embodiment of the present invention is illustrated Figure.
, it is necessary in advance with the sign path multiple resources of sign before page rendering is carried out, i.e. no By the physical location of above-mentioned multiple resources be in local file, or in ftp server, or In Web server, or in the compressed files such as Jar, zip or in relational database, NoSql In database database, finally must all be indicated with a unique sign path, in this reality In applying example, with "/A1/…/An-1/AnThe form of/filename " is indicated, wherein, A1、…、An-1、 AnThe title of the n catalogue included in the sign path, n is the integer not less than 0;filename It is the title of the resource of sign path sign.After with the sign path multiple resources of sign, No matter the original path of certain resource is where, as long as its sign path is identical, then it represents that be same money Source.
After with the sign path multiple resources of sign, the last upper layer path of above-mentioned multiple resources (that is, root) must be "/", thus bring a benefit, in that context it may be convenient to carry out resource road The comparing of the hierarchical structure in footpath.If the sign path of two resources is identical, then it represents that they are same In catalogue.Such as:"/aa/bb/aa.page " and "/aa/bb/default.layout " the two resources, just May be considered in same catalogue.
After in advance with the sign path multiple resources of sign, the page rendering method is specifically included Following steps:
S201:Render the content of template resource described in the template resource acquisition in the multiple resource.
The type of resource has two kinds, and one kind makes layout resource, one kind be template resource, is laid out resource and mould Plate resource is substantially not different, only difference is that have a template resource placeholder in layout inside, The form of template resource placeholder can be " #pageContent ", naturally it is also possible to be other forms.Mould Plate resource placeholder is actually to indicate an insertion point for being laid out resource, that is, template resource carries out wash with watercolours After dye, resource lookup is laid out according to rule is rendered, finds and be suitably laid out after resource, template The content of resource is rendered into the position of this template resource placeholder in layout resource.
Multiple template can also be arrived by #layout (or similar) instruction definition 0 in layout resource in addition Resource placeholder, can set acquiescence display content, if in the page in the position of template resource placeholder By #@layout (or similar) the instruction statement content finally to be shown (that is, part of the same name in resource Resource), then the content stated in page resource is shown, default content is (i.e., otherwise in display layout's resource Acquiescence Local resource).
S202:Current directory is determined according to the sign path.
With "/A1/…/An-1/AnFor the sign path of this forms of/filename ", current directory can be An/、An-1/、……、A1/ ,/in any one, when page rendering, typically from bottom mesh Record (i.e. An/) start to process, until treatment to root.
S203:Search whether there is the of the same name layout of the same name with the template resource under the current directory Resource, if it does not, step S104 is being performed, if it is present performing step S105.
In the present embodiment, it is necessary to sub-fraction content different in the resource that will be introduced into advance, difference Default layout resource and layout resource of the same name are set, at most of conditions (i.e. in the case of no special), Using default layout resource, on rare occasion (i.e. in particular cases), provided using layout of the same name Source, default layout resource and layout resource of the same name are not repeated, and meet DRY principles.In addition, when many When the individual page has special circumstances, only increase corresponding layout resource of the same name, reduce exploitation and tie up The cost of shield, it is ensured that the accuracy that resource is introduced.
S204:Search whether there is default layout resource under the current directory, if it is present performing Step S206, if it does not exist, then performing step S207.
During page rendering, special circumstances are first determined whether, if special circumstances, then pressed The mode of special circumstances is processed, if no special situation, is just processed by no special situation.
S205:The template resource that the content of the template resource is rendered into the layout resource of the same name is accounted for The position of position symbol.
S206:The template resource that the content of the template resource is rendered into the default layout resource is accounted for The position of position symbol.
S207:Judge whether the current directory is root, if it is not, then with the current directory A upper catalogue as current directory, and return execution step S203, if it is, rendering end.
Present embodiment discloses a kind of page rendering method, though the physical location of multiple resources where, Above-mentioned multiple resources are all indicated with a sign path in advance, according to sign path when such resource is introduced Can, the physical location change of resource will not affect that the correct introducing of resource.And, the money that will be introduced Sub-fraction content different in source, is respectively provided with the concept of default layout resource and layout resource of the same name, In the case of no special, using default layout resource, and under special circumstances, layout of the same name is used Resource, default layout resource and layout resource of the same name are not repeated, and meet DRY principles.In addition, working as When there are special circumstances in multiple pages, only increase it is corresponding it is of the same name layout resource, reduce exploitation with The cost of maintenance, it is ensured that the accuracy that resource is introduced.
Method is described in detail in the invention described above disclosed embodiment, can be used for the method for the present invention The device of diversified forms is realized, therefore the invention also discloses a kind of device, specific implementation is given below Example is described in detail.
Accompanying drawing 3 is referred to, is that the embodiment of the present invention discloses a kind of structural representation of page rendering device.
The page rendering device, including such as lower unit:
Sign unit 10, in advance with the sign path multiple resources of sign;
Rendering unit 11, for rendering template resource described in the template resource acquisition in the multiple resource Content;
And, current directory is determined according to the sign path;
And, when the current directory is not root, perform following steps:
Search whether there is the of the same name layout resource of the same name with the template resource under the current directory;
If it is present the content of the template resource is rendered into the layout resource of the same name;
If it does not exist, then searching whether there is default layout resource under the current directory;
If it is present the content of the template resource is rendered into the default layout resource;
Using a upper catalogue of the current directory as current directory.
It should be noted that the sign path is /A1/…/An-1/An/ filename, wherein, A1、…、 An-1、AnThe title of the n catalogue included in the sign path, n is the integer not less than 0; Filename is the title of the resource of the sign path sign.
Explanation is needed further exist for, layout resource is internally provided with template resource placeholder.
Then the rendering unit 11 specifically for:
The content of the template resource is rendered into the template resource placeholder in the layout resource of the same name Position.
The rendering unit 11 specifically for:
The template resource placeholder content of the template resource being rendered into the default layout resource Position.
The concrete function of above-mentioned unit is realized being described in detail in embodiment of the method, and the present embodiment is not Repeat again, specifically refer to the related content in embodiment of the method.
In sum:
The invention discloses a kind of page rendering method and device, no matter the physical location of multiple resources is at which In, above-mentioned multiple resources are all indicated with a sign path in advance, according to sign road when such resource is introduced Footpath, the physical location change of resource will not affect that the correct introducing of resource.And, will introduce Resource in different sub-fraction content, be respectively provided with default layout resource and layout resource of the same name Concept, in the case of no special, using default layout resource, and under special circumstances, using same Name layout resource, default layout resource and layout resource of the same name are not repeated, and meet DRY principles.Separately Outward, when multiple pages have special circumstances, only increase corresponding layout resource of the same name, reduce Exploitation and the cost safeguarded, it is ensured that the accuracy that resource is introduced.
Each embodiment is described by the way of progressive in this specification, and each embodiment is stressed The difference with other embodiment, between each embodiment identical similar portion mutually referring to. For device disclosed in embodiment, because it is corresponded to the method disclosed in Example, so description It is fairly simple, related part is referring to method part illustration.
In addition it should be noted that, device embodiment described above is only schematical, wherein described The unit illustrated as separating component can be or may not be it is physically separate, it is aobvious as unit The part of formula can be or may not be physical location, you can with positioned at a place, or also may be used To be distributed on multiple NEs.Some or all of mould therein can according to the actual needs be selected Block realizes the purpose of this embodiment scheme.In addition, in the device embodiment accompanying drawing of present invention offer, mould Annexation between block represents between them there is communication connection, specifically can be implemented as one or more Communication bus or holding wire.Those of ordinary skill in the art without creative efforts, i.e., It is appreciated that and implements.
Through the above description of the embodiments, it is apparent to those skilled in the art that originally Invention can add the mode of required common hardware to realize by software, naturally it is also possible to by specialized hardware Realized including application specific integrated circuit, dedicated cpu, private memory, special components and parts etc..General feelings Under condition, all functions of being completed by computer program can be realized easily with corresponding hardware, and And, the particular hardware structure for realizing same function can also be it is diversified, such as analog circuit, Digital circuit or special circuit etc..But, it is more for the purpose of the present invention in the case of software program realize be more Good implementation method.Based on such understanding, technical scheme is substantially in other words to existing skill The part that art contributes can be embodied in the form of software product, computer software product storage In the storage medium that can read, such as computer floppy disk, USB flash disk, mobile hard disk, read-only storage (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic Dish or CD etc., including some instructions are used to so that computer equipment (can be personal computer, Server, or the network equipment etc.) perform method described in each embodiment of the invention.
In sum, the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations; Although being described in detail to the present invention with reference to above-described embodiment, one of ordinary skill in the art should Work as understanding:It can still modify to the technical scheme described in the various embodiments described above, or to it Middle some technical characteristics carry out equivalent;And these modifications or replacement, do not make appropriate technical solution Essence depart from various embodiments of the present invention technical scheme spirit and scope.

Claims (10)

1. a kind of page rendering method, it is characterised in that in advance with the sign path multiple resources of sign, Including:
Render the content of template resource described in the template resource acquisition in the multiple resource;
Current directory is determined according to the sign path;
When the current directory is not root, following steps are performed:
Search whether there is the of the same name layout resource of the same name with the template resource under the current directory;
If it is present the content of the template resource is rendered into the layout resource of the same name;
If it does not exist, then searching whether there is default layout resource under the current directory;
If it is present the content of the template resource is rendered into the default layout resource;
Using a upper catalogue of the current directory as current directory.
2. method according to claim 1, it is characterised in that the sign path is /A1/… /An-1/An/ filename, wherein, A1、…、An-1、AnThe n mesh included in the sign path The title of record, n is the integer not less than 0;Filename is the title of the resource of the sign path sign.
3. method according to claim 1, it is characterised in that layout resource is internally provided with template Resource placeholder.
4. method according to claim 3, it is characterised in that described by the template resource Appearance is rendered into the layout resource of the same name, is specifically included:
The content of the template resource is rendered into the template resource placeholder in the layout resource of the same name Position.
5. method according to claim 3, it is characterised in that described by the template resource Appearance is rendered into the default layout resource, is specifically included:
The template resource placeholder content of the template resource being rendered into the default layout resource Position.
6. a kind of page rendering device, it is characterised in that including:
Sign unit, in advance with the sign path multiple resources of sign;
Rendering unit, for rendering in template resource described in the template resource acquisition in the multiple resource Hold;
And, current directory is determined according to the sign path;
And, when the current directory is not root, perform following steps:
Search whether there is the of the same name layout resource of the same name with the template resource under the current directory;
If it is present the content of the template resource is rendered into the layout resource of the same name;
If it does not exist, then searching whether there is default layout resource under the current directory;
If it is present the content of the template resource is rendered into the default layout resource;
Using a upper catalogue of the current directory as current directory.
7. device according to claim 6, it is characterised in that the sign path is /A1/… /An-1/An/ filename, wherein, A1、…、An-1、AnThe n mesh included in the sign path The title of record, n is the integer not less than 0;Filename is the title of the resource of the sign path sign.
8. device according to claim 6, it is characterised in that layout resource is internally provided with template Resource placeholder.
9. device according to claim 8, it is characterised in that the rendering unit specifically for:
The content of the template resource is rendered into the template resource placeholder in the layout resource of the same name Position.
10. device according to claim 8, it is characterised in that the rendering unit specifically for:
The template resource placeholder content of the template resource being rendered into the default layout resource Position.
CN201510447977.2A 2015-07-27 2015-07-27 A kind of page rendering method and device Active CN106708479B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510447977.2A CN106708479B (en) 2015-07-27 2015-07-27 A kind of page rendering method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510447977.2A CN106708479B (en) 2015-07-27 2015-07-27 A kind of page rendering method and device

Publications (2)

Publication Number Publication Date
CN106708479A true CN106708479A (en) 2017-05-24
CN106708479B CN106708479B (en) 2019-08-23

Family

ID=58895400

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510447977.2A Active CN106708479B (en) 2015-07-27 2015-07-27 A kind of page rendering method and device

Country Status (1)

Country Link
CN (1) CN106708479B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108846087A (en) * 2018-06-12 2018-11-20 恒生电子股份有限公司 A kind of page rendering method, apparatus, terminal and server
CN110058856A (en) * 2019-04-28 2019-07-26 恒生电子股份有限公司 Page configuration method and device
CN111127616A (en) * 2019-12-27 2020-05-08 珠海金山网络游戏科技有限公司 Rendering verification method and device
WO2020140940A1 (en) * 2019-01-06 2020-07-09 阿里巴巴集团控股有限公司 Code generation method and apparatus, and device and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102279704A (en) * 2011-07-22 2011-12-14 中兴通讯股份有限公司 Interface control method, device and mobile terminal
CN103605801A (en) * 2013-12-05 2014-02-26 用友软件股份有限公司 Method and system for managing documents data
CN103970534A (en) * 2014-04-15 2014-08-06 百度在线网络技术(北京)有限公司 Method and equipment for supplying rendered page in mobile application

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102279704A (en) * 2011-07-22 2011-12-14 中兴通讯股份有限公司 Interface control method, device and mobile terminal
CN103605801A (en) * 2013-12-05 2014-02-26 用友软件股份有限公司 Method and system for managing documents data
CN103970534A (en) * 2014-04-15 2014-08-06 百度在线网络技术(北京)有限公司 Method and equipment for supplying rendered page in mobile application

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108846087A (en) * 2018-06-12 2018-11-20 恒生电子股份有限公司 A kind of page rendering method, apparatus, terminal and server
WO2020140940A1 (en) * 2019-01-06 2020-07-09 阿里巴巴集团控股有限公司 Code generation method and apparatus, and device and storage medium
CN110058856A (en) * 2019-04-28 2019-07-26 恒生电子股份有限公司 Page configuration method and device
CN110058856B (en) * 2019-04-28 2023-08-01 恒生电子股份有限公司 Page configuration method and device
CN111127616A (en) * 2019-12-27 2020-05-08 珠海金山网络游戏科技有限公司 Rendering verification method and device
CN111127616B (en) * 2019-12-27 2023-09-19 珠海金山数字网络科技有限公司 Rendering verification method and device

Also Published As

Publication number Publication date
CN106708479B (en) 2019-08-23

Similar Documents

Publication Publication Date Title
CN104881318B (en) A kind of interface call method, device and terminal
US7624349B2 (en) Declarative definition enabling graphical designer reuse
CN110109659A (en) A kind of system that realizing front end applications scaffold and server
CN106293664A (en) Code generating method and device
US10528688B1 (en) System and method for schematic-driven generation of input/output models
CN109145235B (en) Method and device for analyzing webpage and electronic equipment
CN106372130B (en) A kind of static resource management method
CN106708479A (en) Page rendering method and device
CN113126990B (en) Page development method, device, equipment and storage medium
CN104850498B (en) A kind of filling information method of testing and system
CN103488482A (en) Method and device for generating test cases
CN105760192A (en) Registration method and device for service module of system server
CN104750472A (en) Resource bundle management method and device of terminal application
CN105389184A (en) Configuration method and apparatus for product interface information
CN109857398A (en) A kind of generation method of front end page, device, storage medium and computer equipment
CN113377661A (en) Interface testing method and device, electronic equipment and storage medium
CN109614325A (en) A kind of method and device, electronic equipment and the storage medium of determining control property
CN104834759A (en) Realization method and device for electronic design
CN104462036A (en) Method and system for synchronously editing format information of document
CN107678741A (en) Implementation method, device, readable storage medium storing program for executing and the equipment of List View
US20150113487A1 (en) Automated integrated circuit design documentation
CN109669678A (en) Template engine integration method, device, electronic equipment and storage medium
CN102193789B (en) Method and equipment for realizing configurable skip link
CN108153745B (en) Application data calling method and application development system
CN108694043B (en) Page decoration method and system

Legal Events

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