摘要 |
Disclosed is a system for generating units of information from a database maintained in a server. The units of information may be messages and the database may be a post office system. The server receives a request for units of information transmitted from a client computer over a network. The server then processes the request for information and generates a template. This template includes code in a first computer language that does not allow branching, such as the HyperText Markup Language (HTML), database access commands to access the requested units of information in the database, and a subtemplate command to generate contents of a subtemplate file into the template. The subtemplate command is written in a second computer language providing branching, such as C++, Java, Perl, etc. The subtemplate file called by the subtemplate command includes code in the first computer language. The server processes the template to generate a processed template. In processing the template, the server processes the subtemplate commands in the template and generates the contents of the subtemplate file into the template. The server further processes the contents of the subtemplate file generated into the template. The server also processes database access commands in the template to access the requested units of information from the database and inserts the accessed units of information into the template. After processing the template, the server transmits the processed template to the client computer.
|