1. Field of the Invention
The present invention relates to website development, and in particular to a system and method for generating webpages thereof.
2. Description of the Related Art
A conventional system for developing webpages is labor intensive and requires experts from different fields. Content for a webpage are first provided. The layout design thereof is then determined, and source code thereof is written. The development of content, layout design, and source code requires different specialties and is generally accomplished by different personnel. If the three described steps of webpage development are accomplished separately by different personnel, difficulties may arise resulting in prolonged lead time and reduced quality.
Furthermore, webpages must be developed individually even if they have a similar layout. Hence, work must be duplicated repeatedly to fit new content into a preset layout. Additionally, a particular webpage may be designed to be presented on certain platform with an appearance defined by a preset layout. If the platform or layout changes, the webpage must be redeveloped.
Hence, there is a need for a webpage development system which ameliorates the disadvantages of the existing technology.
Accordingly, the present invention provides a system and method for generating webpages by combining a format template and a content template.
The present invention provides a system for generating webpages comprising a web data generating module, a format template editing module, a content template editing module, and an integration module.
The web data generating module generates a format template and a content template according to a preset model, wherein the model comprises at least one page element corresponding to the page element.
The format template editing module adjusts the format template, wherein the format template comprises at least one format element corresponding to the page element.
The content template editing module adjusts the content template, wherein the content template comprises at least one content element.
The integration module, connected to the format template adjusting module and the content template adjusting module, retrieves the content element from the adjusted content template, combines it into the corresponding format element of the adjusted format template, and generates the webpages as defined by the model accordingly.
The present invention also provides a method for generating webpages. First, a model is provided, wherein the model comprises at least one page element. Then, a format template and a content template are generated according to the model. Next, the format template is adjusted, wherein the format template comprises at least one format element corresponding to the page element. Then, the content template is adjusted, wherein the content template comprises at least one content element corresponding to the page element. After the format template and content template are adjusted, the content element is retrieved from the adjusted content template, and combined into the corresponding format element of the adjusted format template to generate an webpages accordingly.
The above-mentioned method may take the form of program code embodied in a tangible media. When the program code is loaded into and executed by a machine, the machine becomes an apparatus for practicing the invention.
A detailed description is given in the following embodiments with reference to the accompanying drawings.
The present invention can be more fully understood by reading the subsequent detailed description and examples with references made to the accompanying drawings, wherein:
A system 10 for generating a webpage includes a web data generating module 11, a format template editing module 13, a content template editing module 15, an integration module 17, and a storage device 19.
The web data generating module 11 generates a format template and a content template according to a preset model, wherein the model comprises at least one page element. The preset model is stored in the storage device 19. The aforementioned format template comprises at least one format element corresponding to the page element. The aforementioned content template comprises at least one content element corresponding to the page element.
The format template editing module 13 adjusts the format template to meet requirements. Similarly, the adjusted format template comprises at least one format element corresponding to the page element.
The content template editing module 15 adjusts the content template. Similarly, the adjusted content template comprises at least one content element.
The integration module 17 retrieves the content element from the adjusted content template, combines it with a corresponding format element of the adjusted format template, and generates the webpage as defined by the model.
Using
First, a preset model defining a webpage is provided (step S21). The model comprises at least one page element. The content template comprises at least one content element corresponding to the page element.
Second, a format template and a content template are generated according to the model (step S22). The format template comprises at least one format element corresponding to the page element.
Then, the format template is adjusted to meet requirements (step S23). Similarly, the adjusted format template comprises at least one format element corresponding to the page element. The content template is also adjusted to meet requirements (step S24). Similarly, the content template comprises at least one content element corresponding to the page element.
Next, the content element is retrieved from the adjusted content template and combined into a corresponding format element of the adjusted format template, and thus the webpage as defined by the model is generated (step S25).
Referring to FIGS. 3˜10, details of the aforementioned webpage development are described in the following.
The method of the present invention, or certain aspects or portions thereof, may take the form of program code (i.e. instructions) embodied in a tangible media, such as floppy diskettes, CD-ROMS, hard drives, or any other machine-readable storage medium, wherein, when the program code is loaded into and executed by a machine, such as a computer, the machine becomes an apparatus for practicing the invention. The methods and apparatus of the present invention may also be embodied in the form of program code transmitted over some transmission medium, such as electrical wiring or cabling, through fiber optics, or via any other form of transmission, wherein, when the program code is received and loaded into and executed by a machine, such as a computer, the machine becomes an apparatus for practicing the invention. When implemented on a general-purpose processor, the program code combines with the processor to provide a unique apparatus that operates analogously to specific logic circuits.
While the invention has been described by way of example and in terms of the preferred embodiments, it is to be understood that the invention is not limited to the disclosed embodiments. To the contrary, it is intended to cover various modifications and similar arrangements (as would be apparent to those skilled in the art). Therefore, the scope of the appended claims should be accorded the broadest interpretation so as to encompass all such modifications and similar arrangements.
Number | Date | Country | Kind |
---|---|---|---|
92135186 | Dec 2003 | TW | national |