CN105095497A - Method and device for generating webpage based on webpage template - Google Patents

Method and device for generating webpage based on webpage template Download PDF

Info

Publication number
CN105095497A
CN105095497A CN201510523033.9A CN201510523033A CN105095497A CN 105095497 A CN105095497 A CN 105095497A CN 201510523033 A CN201510523033 A CN 201510523033A CN 105095497 A CN105095497 A CN 105095497A
Authority
CN
China
Prior art keywords
parameter
subtemplate
web page
language environment
webpage
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
CN201510523033.9A
Other languages
Chinese (zh)
Other versions
CN105095497B (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.)
Beijing Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201510523033.9A priority Critical patent/CN105095497B/en
Publication of CN105095497A publication Critical patent/CN105095497A/en
Application granted granted Critical
Publication of CN105095497B publication Critical patent/CN105095497B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • G06F16/972Access to data in other repository systems, e.g. legacy data or dynamic Web page generation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • G06F16/9566URL specific, e.g. using aliases, detecting broken or misspelled links

Landscapes

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

Abstract

The invention discloses a method and device for generating a webpage based on a webpage template. The webpage template comprises a foundation template and one or more subtemplates. The method comprises the steps that a head parameter of one of the subtemplates is obtained, and the head parameter comprises language environment tagging parameters used for tagging one or more language environments; according to the language environment tagging parameters, the corresponding language environments are matched, and environment parameters and rendering components which accord with the language environment requirements are obtained; the webpage template is obtained by inserting the subtemplates into the foundation template, and value assignment is conducted on the environment parameters of the subtemplates; the webpage template is run so that the webpage can be formed. According to the method and device for generating the webpage based on the webpage template, the language environments are matched according to programming languages, a designer can design the webpage template according to the mastered programming languages, and the defect that in the prior art, due to the fact that a fixed language can be used for design and matching of the language environments cannot be conducted automatically when other languages are used for the design, an error occurs is overcome.

Description

Based on method and the device of web page template generating web page
Technical field
The present invention relates to Internet technical field, be specifically related to a kind of method based on web page template generating web page and device.
Background technology
In the prior art, for fast, a large amount of generating web pages, web page template generally can be utilized to carry out generating web page, but, the programming language that existing web page template only allows stencil design librarian use fixing, fixing language environment carries out stencil design, such as, a certain web page template only allows stencil design personnel to utilize Java language to carry out stencil design, but not all stencil design personnel have skillfully grasped this language, more possible stencil design personnel have grasped PHP language, other stencil design personnel have grasped JavaScript language, but, these two kinds of programming languages can not be adaptive with the fixing language environment required by web page template, thus there is mistake, cannot generating web page, reduce webpage development efficiency.
Summary of the invention
In view of the above problems, the present invention is proposed to provide a kind of overcoming the problems referred to above or the method based on web page template generating web page that solves the problem at least in part and accordingly based on the device of web page template generating web page.
According to an aspect of the present invention, provide a kind of method based on web page template generating web page, web page template comprises foundation forms and at least one subtemplate, and method comprises:
For one of them subtemplate, obtain the head parameter of subtemplate, head parameter comprises the language environment flag parameters for marking at least one language environment;
According to described language environment flag parameters, adaptive corresponding language environment, and obtain the environmental parameter and render component that meet language environment requirement;
Subtemplate is embedded into foundation forms and obtains web page template, assignment is carried out to the environmental parameter of subtemplate;
Run web page template with generating web page.
According to a further aspect in the invention, provide a kind of device based on web page template generating web page, web page template comprises foundation forms and at least one subtemplate, and device comprises:
Head parameter acquisition module, is suitable for for one of them subtemplate, and obtain the head parameter of subtemplate, head parameter comprises the language environment flag parameters for marking at least one language environment;
Adaptation module, is suitable for according to described language environment flag parameters, adaptive corresponding language environment, and obtains the environmental parameter and render component that meet language environment requirement;
Merge module, is suitable for that subtemplate is embedded into foundation forms and obtains web page template, carries out assignment to the environmental parameter of subtemplate;
Generation module, is suitable for running web page template with generating web page.
According to scheme provided by the invention, for one of them subtemplate, obtain the head parameter of subtemplate, head parameter comprises language environment flag parameters; According to language environment flag parameters, adaptive corresponding language environment, and obtain the environmental parameter and render component that meet language environment requirement, according to the adaptive language environment of programming language, designer can be made according to grasped programming language design web page template, overcoming prior art only can use fixing language to design, when using other language to design, automatically adaptive language environment cannot be carried out, thus occur the defect of mistake, and alleviate the pressure that designer learns programming language aspect; Subtemplate is embedded into foundation forms and obtains web page template, assignment is carried out to the environmental parameter of subtemplate; Run web page template with generating web page, web page template can be multiplexing, based on obtained web page template generating web page, can alleviate designer's burden.
Above-mentioned explanation is only the general introduction of technical solution of the present invention, in order to technological means of the present invention can be better understood, and can be implemented according to the content of instructions, and can become apparent, below especially exemplified by the specific embodiment of the present invention to allow above and other objects of the present invention, feature and advantage.
Accompanying drawing explanation
By reading hereafter detailed description of the preferred embodiment, various other advantage and benefit will become cheer and bright for those of ordinary skill in the art.Accompanying drawing only for illustrating the object of preferred implementation, and does not think limitation of the present invention.And in whole accompanying drawing, represent identical parts by identical reference symbol.In the accompanying drawings:
Fig. 1 is the schematic diagram of web page template;
Fig. 2 shows according to an embodiment of the invention based on the process flow diagram of the method for web page template generating web page;
Fig. 3 shows in accordance with another embodiment of the present invention based on the process flow diagram of the method for web page template generating web page;
Fig. 4 shows according to an embodiment of the invention based on the structured flowchart of the device of web page template generating web page.
Embodiment
Below with reference to accompanying drawings exemplary embodiment of the present disclosure is described in more detail.Although show exemplary embodiment of the present disclosure in accompanying drawing, however should be appreciated that can realize the disclosure in a variety of manners and not should limit by the embodiment set forth here.On the contrary, provide these embodiments to be in order to more thoroughly the disclosure can be understood, and complete for the scope of the present disclosure can be conveyed to those skilled in the art.
In the present invention, web page template comprises foundation forms and at least one subtemplate.Foundation forms is for defining the basic framework of webpage, and such as, webpage is made up of several module; Subtemplate can define the action etc. on web page contents, webpage pattern, webpage, specifically can be presented as the content etc. of each module.Fig. 1 is the schematic diagram of web page template.As shown in Figure 1, this web page template 1 is made up of foundation forms 10 and 6 sub-templates, respectively respective modules 1-module 6, and is respectively rolling news, video, textual list, advertisement, picture, game according to the type of subtemplate definition module 1-module 6.
Introduce the embodiment based on web page template generating web page below in detail:
Fig. 2 shows according to an embodiment of the invention based on the process flow diagram of the method for web page template generating web page.As shown in Figure 2, the method comprises the following steps:
Step S200, for one of them subtemplate, obtain the head parameter of subtemplate, head parameter comprises the language environment flag parameters for marking at least one language environment.
In the present embodiment, can provide multiple programming language, such as PHP language, Java language, JavaScript language etc., described multiple programming language is marked by language environment flag parameters, that is, selected programming language can be identified according to language environment flag parameters.
Wherein, the head parameter of subtemplate is manually inputted by developer or generates by calling api interface.
Step S201, according to language environment flag parameters, adaptive corresponding language environment, and obtain the environmental parameter and render component that meet language environment requirement.
After getting language environment flag parameters according to step S200, according to the adaptive language environment corresponding with it of this language environment flag parameters.In actual implementation procedure, because whole system is all sing on web, mainly operate in a browser, language execution environment is actual: the Code Edit environment of sing on web and corresponding code execution environments.If not in Web mode, but realize in the mode of client software, so, the editor of simple PHP and running environment are also passable.Each language environment has corresponding environmental parameter and render component, and wherein, environmental parameter defines in corresponding language environment, needs the content obtained; Render component includes plays up code, playing up, generating HTML code for loading corresponding environmental parameter, and then generating web page.
Step S202, is embedded into foundation forms by subtemplate and obtains web page template, carries out assignment to the environmental parameter of subtemplate.
Wherein, foundation forms defines the basic framework of webpage, and subtemplate, for defining the action etc. on web page contents, webpage pattern, webpage, is embedded into foundation forms and can obtains complete web page template by subtemplate.Obtain the environmental parameter meeting language environment and require in step s 201, will meet the particular content assignment of this environmental parameter to the environmental parameter of subtemplate, such as, can be one section of text.
Step S203, runs web page template with generating web page.
Implement according to the present invention is above-mentioned the method provided, for one of them subtemplate, obtain the head parameter of subtemplate, head parameter comprises language environment flag parameters; According to language environment flag parameters, adaptive corresponding language environment, and obtain the environmental parameter and render component that meet language environment requirement, according to the adaptive language environment of programming language, designer can be made according to grasped programming language design web page template, overcoming prior art only can use fixing language to design, when using other language to design, automatically adaptive language environment cannot be carried out, thus occur the defect of mistake, and alleviate the pressure that designer learns programming language aspect; Subtemplate is embedded into foundation forms and obtains web page template, assignment is carried out to the environmental parameter of subtemplate; Run web page template with generating web page, web page template can be multiplexing, based on obtained web page template generating web page, can alleviate designer's burden, improve webpage development efficiency.
Fig. 3 shows in accordance with another embodiment of the present invention based on the process flow diagram of the method for web page template generating web page.As shown in Figure 3, the method comprises the following steps:
Step S300, for one of them subtemplate, obtain the head parameter of subtemplate, head parameter comprises the language environment flag parameters for marking at least one language environment.
In the present embodiment, can provide multiple programming language, such as PHP language, Java language, JavaScript language etc., multiple programming language can be marked by language environment flag parameters, that is, selected programming language can be identified according to language environment flag parameters.
Wherein, the head parameter of subtemplate is manually inputted by developer or generates by calling api interface.
In addition, head parameter also comprises subtemplate type parameter and subtemplate Data Source parameter.Wherein, the type of subtemplate type parameter mark subtemplate, such as, the type of subtemplate is video, news etc.Subtemplate Data Source parameter shows the source of adding subtemplate data to, such as database, or a certain address, such as, only provides URL address, can be obtained the particular content of this URL address by the mode dynamically captured.Head parameter can also be used for control and get how many data.
Step S301, according to language environment flag parameters, adaptive corresponding language environment, and obtain the environmental parameter and render component that meet language environment requirement.
After getting language environment flag parameters according to step S300, according to the adaptive language environment corresponding with it of this language environment flag parameters.In actual implementation procedure, because whole system is all sing on web, mainly operate in a browser, language execution environment is actual: the Code Edit environment of sing on web and corresponding code execution environments.If not in Web mode, but realize in the mode of client software, so, the editor of simple PHP and running environment are also passable.Each language environment has corresponding environmental parameter and render component, and wherein, environmental parameter defines in corresponding language environment, needs the content obtained; Render component includes plays up code, playing up, generating HTML code by calling corresponding environmental parameter, and then generating web page.
Step S302, is embedded into foundation forms by subtemplate and obtains web page template, carries out assignment to the environmental parameter of subtemplate.
Wherein, foundation forms defines the basic framework of webpage, and subtemplate, for defining the action etc. on web page contents, webpage pattern, webpage, is embedded into foundation forms and can obtains complete web page template by subtemplate.In step S301, obtain the environmental parameter meeting language environment and require, will meet the particular content assignment of this environmental parameter to the environmental parameter of subtemplate, such as, can be one section of text.
Particularly, environmental parameter comprises source data parameter, web placement parameter, web site parameter, and wherein, it is corresponding with subtemplate Data Source parameter for source data parameter, defines in language environment, needs the source data obtained; Web placement parameter is for identifying the particular location of subtemplate in webpage; Web site parameter is used for the position of presentation web page in website, and such as, which page webpage is.
Carry out assignment to environmental parameter to comprise further: according to subtemplate Data Source parameter, capture subtemplate data, by subtemplate data assignment to source data parameter, for subtemplate data from URL address, according to this URL address, capture the particular content of this URL address, by captured particular content assignment to source data parameter; Or,
According to the embedded location of submodule, assignment is carried out to web placement parameter; Or,
According to the embedded location of webpage in website, assignment is carried out to web site parameter.
Wherein, web placement parameter is embedded into acquisition after in webpage at subtemplate, and the particular location assignment embedded by subtemplate is to web placement parameter; Web site parameter is embedded into acquisition after in website at webpage, and the particular location assignment embedded by webpage is to web site parameter.
Step S303, according at least one subtemplate language environment flag parameters separately, starts the render component that corresponding language environment requires, and the environmental parameter that the language environment loading correspondence requires, generating web page.
In above-mentioned steps, though by subtemplate data assignment to source data parameter, but subtemplate data are not played up display, and subtemplate data only just can show when generating web page.
In step S301, obtain the render component that language environment requires, this render component includes plays up code, by starting the render component that corresponding language environment requires, loading corresponding environmental parameter and playing up, generating HTML code, and then generating web page.
In the present embodiment, head parameter also comprises error handle flag parameters, and error handle flag parameters mark when grabbing less than disposal route during data from Data Source, such as, stops the data upgrading or show blank or obtain old edition webpage to show.Particularly, run web page template with in the process of generating web page, according to error handle flag parameters, the mistake run in auto-building html files is processed.
Illustrate disposal route when to run into mistake in auto-building html files process: for programming language 1, its error handle flag parameters is a, represent and show blank when errors are encountered; For programming language 2, its error handle flag parameters is b, represents when errors are encountered, and the data obtaining old edition webpage show.
The render component that the language environment starting programming language 1 correspondence requires, load assignment to the data of source data parameter, in the process of generating web page, cannot from database capture data play up time, then corresponding according to error handle flag parameters a disposal route processes webpage, and being embodied as web displaying is blank page.
The render component that the language environment starting programming language 2 correspondence requires, load assignment to the data of source data parameter, in the process of generating web page, when data dynamically cannot be grabbed from URL address to be played up, then corresponding according to error handle flag parameters b disposal route, webpage is processed, is embodied as and obtains corresponding data from old edition webpage, the data render of old edition webpage is presented in webpage.
Implement according to the present invention is above-mentioned the method provided, for one of them subtemplate, obtain the head parameter of subtemplate, head parameter comprises language environment flag parameters, according to language environment flag parameters, adaptive corresponding language environment, and obtain the environmental parameter and render component that meet language environment requirement, subtemplate is embedded into foundation forms and obtains web page template, assignment is carried out to the environmental parameter of subtemplate, according at least one subtemplate language environment flag parameters separately, start the render component that corresponding language environment requires, and load the environmental parameter of corresponding language environment requirement, generating web page, according to the adaptive language environment of programming language, designer can be made according to grasped programming language design web page template, overcoming prior art only can use fixing language to design, when using other language to design, automatically adaptive language environment cannot be carried out, thus there is the defect of mistake, and alleviate the pressure that designer learns programming language aspect, web page template can be multiplexing, based on obtained web page template generating web page, designer's burden can be alleviated, and the error handle mode according to selecting processes webpage, improve webpage development efficiency.
Fig. 4 shows according to an embodiment of the invention based on the structured flowchart of the device of web page template generating web page.As shown in Figure 4, this device comprises: head parameter acquisition module 400, adaptation module 401, merge module 402, generation module 403.
Head parameter acquisition module 400, is suitable for for one of them subtemplate, and obtain the head parameter of subtemplate, head parameter comprises the language environment flag parameters for marking at least one language environment.
Wherein, head parameter also comprises subtemplate type parameter and subtemplate Data Source parameter.The type of subtemplate type parameter mark subtemplate, such as, the type of subtemplate is video, news etc.Subtemplate Data Source parameter shows the source of adding subtemplate data to, such as database, or a certain address, such as, only provides URL address, can be obtained the particular content of this URL address by the mode dynamically captured.Head parameter can also be used for control and get how many data.
Adaptation module 401, is suitable for according to language environment flag parameters, adaptive corresponding language environment, and obtains the environmental parameter and render component that meet language environment requirement.
Merge module 402, is suitable for that subtemplate is embedded into foundation forms and obtains web page template, carries out assignment to the environmental parameter of subtemplate.
Wherein, environmental parameter comprises source data parameter; Merge module 402 is further adapted for: according to subtemplate Data Source parameter, captures subtemplate data, by subtemplate data assignment to source data parameter.
Alternatively, environmental parameter comprises web placement parameter; Merge module 403 is further adapted for: according to the embedded location of submodule, carries out assignment to web placement parameter.
Alternatively, environmental parameter comprises web site parameter; Merge module 403 is further adapted for: according to the embedded location of webpage in website, carry out assignment to web site parameter.
Wherein, web placement parameter is embedded into acquisition after in webpage at subtemplate, and the particular location assignment embedded by subtemplate is to web placement parameter; Web site parameter is embedded into acquisition after in website at webpage, and the particular location assignment embedded by webpage is to web site parameter.
Generation module 403, is suitable for running web page template with generating web page.
Alternatively, generation module 403 is further adapted for: according at least one subtemplate language environment flag parameters separately, starts the render component that corresponding language environment requires, and the environmental parameter that the language environment loading correspondence requires, generating web page.
Although merge module 402 is by subtemplate data assignment to source data parameter, subtemplate data are not played up display, and subtemplate data only just can show when generating web page.
Adaptation module 401 obtains the render component that language environment requires, this render component includes plays up code, by starting the render component that corresponding language environment requires, loading corresponding environmental parameter and playing up, generating HTML code, and then generating web page.
Alternatively, head parameter also comprises error handle flag parameters.
Generation module 403 is further adapted for: at operation web page template with in the process of generating web page, process the mistake run in auto-building html files according to error handle flag parameters.
Error handle flag parameters mark when grabbing less than disposal route during data from Data Source, such as, stops the data upgrading or show blank or obtain old edition webpage to show.Particularly, run web page template with in the process of generating web page, according to error handle flag parameters, the mistake run in auto-building html files is processed.
Illustrate disposal route when to run into mistake in auto-building html files process: for programming language 1, its error handle flag parameters is a, represent and show blank when errors are encountered; For programming language 2, its error handle flag parameters is b, represents when errors are encountered, and the data obtaining old edition webpage show.
The render component that the language environment starting programming language 1 correspondence requires, load assignment to the data of source data parameter, in the process of generating web page, cannot from database capture data play up time, then corresponding according to error handle flag parameters a disposal route, process webpage, being embodied as web displaying is blank page.
The render component that the language environment starting programming language 2 correspondence requires, load assignment to the data of source data parameter, in the process of generating web page, when data dynamically cannot be grabbed from URL address to be played up, then corresponding according to error handle flag parameters b disposal route, webpage is processed, is embodied as and obtains corresponding data from old edition webpage, the data render of old edition webpage is presented in webpage.
Implement according to the present invention is above-mentioned the device provided, for one of them subtemplate, obtain the head parameter of subtemplate, head parameter comprises language environment flag parameters, according to language environment flag parameters, adaptive corresponding language environment, and obtain the environmental parameter and render component that meet language environment requirement, subtemplate is embedded into foundation forms and obtains web page template, assignment is carried out to the environmental parameter of subtemplate, according at least one subtemplate language environment flag parameters separately, start the render component that corresponding language environment requires, and load the environmental parameter of corresponding language environment requirement, generating web page, according to the adaptive language environment of programming language, designer can be made according to grasped programming language design web page template, overcoming prior art only can use fixing language to design, when using other language to design, automatically adaptive language environment cannot be carried out, thus there is the defect of mistake, and alleviate the pressure that designer learns programming language aspect, web page template can be multiplexing, based on obtained web page template generating web page, designer's burden can be alleviated, and the error handle mode according to selecting processes webpage, improve webpage development efficiency.
Intrinsic not relevant to any certain computer, virtual system or miscellaneous equipment with display at this algorithm provided.Various general-purpose system also can with use based on together with this teaching.According to description above, the structure constructed required by this type systematic is apparent.In addition, the present invention is not also for any certain programmed language.It should be understood that and various programming language can be utilized to realize content of the present invention described here, and the description done language-specific is above to disclose preferred forms of the present invention.
In instructions provided herein, describe a large amount of detail.But can understand, embodiments of the invention can be put into practice when not having these details.In some instances, be not shown specifically known method, structure and technology, so that not fuzzy understanding of this description.
Similarly, be to be understood that, in order to simplify the disclosure and to help to understand in each inventive aspect one or more, in the description above to exemplary embodiment of the present invention, each feature of the present invention is grouped together in single embodiment, figure or the description to it sometimes.But, the method for the disclosure should be construed to the following intention of reflection: namely the present invention for required protection requires feature more more than the feature clearly recorded in each claim.Or rather, as claims below reflect, all features of disclosed single embodiment before inventive aspect is to be less than.Therefore, the claims following embodiment are incorporated to this embodiment thus clearly, and wherein each claim itself is as independent embodiment of the present invention.
Those skilled in the art are appreciated that and adaptively can change the module in the equipment in embodiment and they are arranged in one or more equipment different from this embodiment.Module in embodiment or unit or assembly can be combined into a module or unit or assembly, and multiple submodule or subelement or sub-component can be put them in addition.Except at least some in such feature and/or process or unit be mutually repel except, any combination can be adopted to combine all processes of all features disclosed in this instructions (comprising adjoint claim, summary and accompanying drawing) and so disclosed any method or equipment or unit.Unless expressly stated otherwise, each feature disclosed in this instructions (comprising adjoint claim, summary and accompanying drawing) can by providing identical, alternative features that is equivalent or similar object replaces.
In addition, those skilled in the art can understand, although embodiments more described herein to comprise in other embodiment some included feature instead of further feature, the combination of the feature of different embodiment means and to be within scope of the present invention and to form different embodiments.Such as, in the following claims, the one of any of embodiment required for protection can use with arbitrary array mode.
All parts embodiment of the present invention with hardware implementing, or can realize with the software module run on one or more processor, or realizes with their combination.It will be understood by those of skill in the art that the some or all functions based on the some or all parts in the equipment of web page template generating web page that microprocessor or digital signal processor (DSP) can be used in practice to realize according to the embodiment of the present invention.The present invention can also be embodied as part or all equipment for performing method as described herein or device program (such as, computer program and computer program).Realizing program of the present invention and can store on a computer-readable medium like this, or the form of one or more signal can be had.Such signal can be downloaded from internet website and obtain, or provides on carrier signal, or provides with any other form.
The present invention will be described instead of limit the invention to it should be noted above-described embodiment, and those skilled in the art can design alternative embodiment when not departing from the scope of claims.In the claims, any reference symbol between bracket should be configured to limitations on claims.Word " comprises " not to be got rid of existence and does not arrange element in the claims or step.Word "a" or "an" before being positioned at element is not got rid of and be there is multiple such element.The present invention can by means of including the hardware of some different elements and realizing by means of the computing machine of suitably programming.In the unit claim listing some devices, several in these devices can be carry out imbody by same hardware branch.Word first, second and third-class use do not represent any order.Can be title by these word explanations.
The invention discloses: A1, a kind of method based on web page template generating web page, described web page template comprises foundation forms and at least one subtemplate, and described method comprises:
For one of them subtemplate, obtain the head parameter of described subtemplate, described head parameter comprises the language environment flag parameters for marking at least one language environment;
According to described language environment flag parameters, adaptive corresponding language environment, and obtain the environmental parameter and render component that meet the requirement of described language environment;
Described subtemplate is embedded into described foundation forms and obtains web page template, assignment is carried out to the environmental parameter of described subtemplate;
Run described web page template with generating web page.
A2, method according to A1, wherein, the described web page template of described operation comprises further with generating web page: according at least one subtemplate described language environment flag parameters separately, start the render component that corresponding language environment requires, and load the environmental parameter of corresponding language environment requirement, generate described webpage.
A3, method according to A1 or A2, wherein, described head parameter also comprises subtemplate type parameter and subtemplate Data Source parameter.
A4, method according to A3, wherein, described environmental parameter comprises source data parameter; Describedly assignment is carried out to environmental parameter comprise further: according to described subtemplate Data Source parameter, capture subtemplate data, give described source data parameter by subtemplate data assignment.
A5, method according to any one of A1-A4, wherein, described environmental parameter comprises web placement parameter; Describedly assignment is carried out to environmental parameter comprise further: according to the embedded location of described submodule, assignment is carried out to described web placement parameter.
A6, method according to any one of A1-A5, wherein, described environmental parameter comprises web site parameter; Describedly assignment is carried out to environmental parameter comprise further: according to the embedded location of described webpage in website, assignment is carried out to described web site parameter.
A7, method according to any one of A1-A6, wherein, described head parameter also comprises error handle flag parameters;
The described web page template of described operation, with in the process of generating web page, processes the mistake run in auto-building html files according to described error handle flag parameters.
The invention also discloses: B8, a kind of device based on web page template generating web page, described web page template comprises foundation forms and at least one subtemplate, and described device comprises:
Head parameter acquisition module, be suitable for for one of them subtemplate, obtain the head parameter of described subtemplate, described head parameter comprises the language environment flag parameters for marking at least one language environment;
Adaptation module, is suitable for according to described language environment flag parameters, adaptive corresponding language environment, and obtains the environmental parameter and render component that meet the requirement of described language environment;
Merge module, is suitable for that described subtemplate is embedded into described foundation forms and obtains web page template, carry out assignment to the environmental parameter of described subtemplate;
Generation module, is suitable for running described web page template with generating web page.
B9, device according to B8, wherein, described generation module is further adapted for: according at least one subtemplate described language environment flag parameters separately, starts the render component that corresponding language environment requires, and load the environmental parameter of corresponding language environment requirement, generate described webpage.
B10, device according to B8 or B9, wherein, described head parameter also comprises subtemplate type parameter and subtemplate Data Source parameter.
B11, device according to B10, wherein, described environmental parameter comprises source data parameter; Described merge module is further adapted for: according to described subtemplate Data Source parameter, captures subtemplate data, gives described source data parameter by subtemplate data assignment.
B12, device according to any one of B8-B11, wherein, described environmental parameter comprises web placement parameter; Described merge module is further adapted for: according to the embedded location of described submodule, carries out assignment to described web placement parameter.
B13, device according to any one of B8-B12, wherein, described environmental parameter comprises web site parameter; Described merge module is further adapted for: according to the embedded location of described webpage in website, carries out assignment to described web site parameter.
B14, device according to any one of B8-B13, wherein, described head parameter also comprises error handle flag parameters;
Described generation module is further adapted for: at the described web page template of described operation with in the process of generating web page, processes the mistake run in auto-building html files according to described error handle flag parameters.

Claims (10)

1., based on a method for web page template generating web page, described web page template comprises foundation forms and at least one subtemplate, and described method comprises:
For one of them subtemplate, obtain the head parameter of described subtemplate, described head parameter comprises the language environment flag parameters for marking at least one language environment;
According to described language environment flag parameters, adaptive corresponding language environment, and obtain the environmental parameter and render component that meet the requirement of described language environment;
Described subtemplate is embedded into described foundation forms and obtains web page template, assignment is carried out to the environmental parameter of described subtemplate;
Run described web page template with generating web page.
2. method according to claim 1, wherein, the described web page template of described operation comprises further with generating web page: according at least one subtemplate described language environment flag parameters separately, start the render component that corresponding language environment requires, and load the environmental parameter of corresponding language environment requirement, generate described webpage.
3. method according to claim 1 and 2, wherein, described head parameter also comprises subtemplate type parameter and subtemplate Data Source parameter.
4. method according to claim 3, wherein, described environmental parameter comprises source data parameter; Describedly assignment is carried out to environmental parameter comprise further: according to described subtemplate Data Source parameter, capture subtemplate data, give described source data parameter by subtemplate data assignment.
5. the method according to any one of claim 1-4, wherein, described environmental parameter comprises web placement parameter; Describedly assignment is carried out to environmental parameter comprise further: according to the embedded location of described submodule, assignment is carried out to described web placement parameter.
6. the method according to any one of claim 1-5, wherein, described environmental parameter comprises web site parameter; Describedly assignment is carried out to environmental parameter comprise further: according to the embedded location of described webpage in website, assignment is carried out to described web site parameter.
7. the method according to any one of claim 1-6, wherein, described head parameter also comprises error handle flag parameters;
The described web page template of described operation, with in the process of generating web page, processes the mistake run in auto-building html files according to described error handle flag parameters.
8., based on a device for web page template generating web page, described web page template comprises foundation forms and at least one subtemplate, and described device comprises:
Head parameter acquisition module, be suitable for for one of them subtemplate, obtain the head parameter of described subtemplate, described head parameter comprises the language environment flag parameters for marking at least one language environment;
Adaptation module, is suitable for according to described language environment flag parameters, adaptive corresponding language environment, and obtains the environmental parameter and render component that meet the requirement of described language environment;
Merge module, is suitable for that described subtemplate is embedded into described foundation forms and obtains web page template, carry out assignment to the environmental parameter of described subtemplate;
Generation module, is suitable for running described web page template with generating web page.
9. device according to claim 8, wherein, described generation module is further adapted for: according at least one subtemplate described language environment flag parameters separately, start the render component that corresponding language environment requires, and load the environmental parameter of corresponding language environment requirement, generate described webpage.
10. device according to claim 8 or claim 9, wherein, described head parameter also comprises subtemplate type parameter and subtemplate Data Source parameter.
CN201510523033.9A 2015-08-24 2015-08-24 The method and device of webpage is generated based on web page template Active CN105095497B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510523033.9A CN105095497B (en) 2015-08-24 2015-08-24 The method and device of webpage is generated based on web page template

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510523033.9A CN105095497B (en) 2015-08-24 2015-08-24 The method and device of webpage is generated based on web page template

Publications (2)

Publication Number Publication Date
CN105095497A true CN105095497A (en) 2015-11-25
CN105095497B CN105095497B (en) 2019-03-05

Family

ID=54575932

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510523033.9A Active CN105095497B (en) 2015-08-24 2015-08-24 The method and device of webpage is generated based on web page template

Country Status (1)

Country Link
CN (1) CN105095497B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107247587A (en) * 2017-05-26 2017-10-13 上海斐讯数据通信技术有限公司 A kind of web page template generation method and device
CN107729097A (en) * 2017-09-20 2018-02-23 五八有限公司 Displayed page collocation method and relevant device
CN107817703A (en) * 2017-10-30 2018-03-20 武汉华中数控股份有限公司 A kind of method realized Industry Control host computer and be controlled to slave computer
CN109086342A (en) * 2018-07-10 2018-12-25 长沙米拓信息技术有限公司 The method of mass production and O&M website form, medium and terminal
CN109614569A (en) * 2018-12-07 2019-04-12 万兴科技股份有限公司 Page rendering method, apparatus and intelligent terminal
CN110134843A (en) * 2019-04-03 2019-08-16 浙江口碑网络技术有限公司 A kind of generation method and device of file destination
CN113867827A (en) * 2020-06-29 2021-12-31 北京字节跳动网络技术有限公司 Method and device for loading webpage
CN114329291A (en) * 2021-12-22 2022-04-12 中国铁道科学研究院集团有限公司电子计算技术研究所 Dynamic management method and system for portal website

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101408892A (en) * 2008-11-21 2009-04-15 上海全景数字技术有限公司 Method and apparatus for generating web page
CN101609399A (en) * 2008-06-20 2009-12-23 鸿富锦精密工业(深圳)有限公司 Intelligent website development system and method based on modeling
CN101976260A (en) * 2010-11-04 2011-02-16 上海银杏界信息科技有限公司 Visual label and method for generating webpage by using visual label
CN102541533A (en) * 2010-12-27 2012-07-04 北大方正集团有限公司 Method and equipment for page display
CN103544024A (en) * 2013-11-12 2014-01-29 深圳如果技术有限公司 Method and system for generating browser page and terminal device
CN104182228A (en) * 2014-08-22 2014-12-03 徐增超 Method and system for creating network applications

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101609399A (en) * 2008-06-20 2009-12-23 鸿富锦精密工业(深圳)有限公司 Intelligent website development system and method based on modeling
CN101408892A (en) * 2008-11-21 2009-04-15 上海全景数字技术有限公司 Method and apparatus for generating web page
CN101976260A (en) * 2010-11-04 2011-02-16 上海银杏界信息科技有限公司 Visual label and method for generating webpage by using visual label
CN102541533A (en) * 2010-12-27 2012-07-04 北大方正集团有限公司 Method and equipment for page display
CN103544024A (en) * 2013-11-12 2014-01-29 深圳如果技术有限公司 Method and system for generating browser page and terminal device
CN104182228A (en) * 2014-08-22 2014-12-03 徐增超 Method and system for creating network applications

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107247587A (en) * 2017-05-26 2017-10-13 上海斐讯数据通信技术有限公司 A kind of web page template generation method and device
CN107247587B (en) * 2017-05-26 2020-02-21 上海斐讯数据通信技术有限公司 Webpage template generation method and device
CN107729097A (en) * 2017-09-20 2018-02-23 五八有限公司 Displayed page collocation method and relevant device
CN107729097B (en) * 2017-09-20 2021-06-04 五八有限公司 Display page configuration method and corresponding equipment
CN107817703A (en) * 2017-10-30 2018-03-20 武汉华中数控股份有限公司 A kind of method realized Industry Control host computer and be controlled to slave computer
CN109086342A (en) * 2018-07-10 2018-12-25 长沙米拓信息技术有限公司 The method of mass production and O&M website form, medium and terminal
CN109086342B (en) * 2018-07-10 2022-04-12 长沙米拓信息技术有限公司 Method, medium and terminal for mass production and operation and maintenance of website templates
CN109614569A (en) * 2018-12-07 2019-04-12 万兴科技股份有限公司 Page rendering method, apparatus and intelligent terminal
CN110134843A (en) * 2019-04-03 2019-08-16 浙江口碑网络技术有限公司 A kind of generation method and device of file destination
CN110134843B (en) * 2019-04-03 2020-07-28 浙江口碑网络技术有限公司 Target file generation method and device
CN113867827A (en) * 2020-06-29 2021-12-31 北京字节跳动网络技术有限公司 Method and device for loading webpage
CN114329291A (en) * 2021-12-22 2022-04-12 中国铁道科学研究院集团有限公司电子计算技术研究所 Dynamic management method and system for portal website

Also Published As

Publication number Publication date
CN105095497B (en) 2019-03-05

Similar Documents

Publication Publication Date Title
CN105095497A (en) Method and device for generating webpage based on webpage template
US11030392B2 (en) Optimization for rendering web pages
CN105095168A (en) Automatic generation method and device for contract files
CN102460429A (en) Conditional translation header for translation of web documents
CN103761079A (en) Method and device for automatically graying page
CN103617191A (en) Browser and method for rendering same by means of hardware acceleration
KR20060114871A (en) Web site management system and method applying web programming environment
US9201761B1 (en) Debugging data format conversion
WO2007013418A1 (en) System for writing software documentation in natural languages
US20160291939A1 (en) Employing code overlays to facilitate software development
CN105824787A (en) Control method and system for dynamic configuration of HTML template
CN107247587B (en) Webpage template generation method and device
CN103593414A (en) Showing method and device of webpages in browser
CN103593406A (en) Static resource identifier processing method and device
CN103559184A (en) Form page display method and device
CN105743736A (en) Automated testing method and system
CN104317931A (en) Webpage title determining method and device
CN103348343A (en) System for generating websites for products with an embedded processor
CN103544271B (en) Load Image in a kind of browser the method and apparatus for processing window
JP5369565B2 (en) Program error information output device, error information output method, and error information output program
CN103164570A (en) Circuit component lead-in method and device in circuit design
US20180032510A1 (en) Automated translation of source code
CN104077390A (en) Search display method and device based on browsers and electronic device
CN110781078B (en) Code vulnerability processing method and device
JP6097231B2 (en) Program generating apparatus and method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20220715

Address after: Room 801, 8th floor, No. 104, floors 1-19, building 2, yard 6, Jiuxianqiao Road, Chaoyang District, Beijing 100015

Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park)

Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Patentee before: Qizhi software (Beijing) Co.,Ltd.