Internal Users

Related Links

University Links

Overview

The template toolset provides two facilities not available in standard HTML. They are:

This is achieved using four components documented in these pages:

Templates
Describe the layout of a page using HTML and the Template Definition Language.

Wrappers
Retrieve information from database (using the CAS database library) and other sources (e.g. active badge, etc.) for insertion into template. Provides interface with user (see Operation, below).

Template tool library (template_functions.pl)
A series of subroutines for use by wrappers that provide the functionality necessary for filling in templates.

CAS database library (CAS_functions.pl)
A series of subroutines for use by wrappers that query the CAS database (or, more accurately, the Ingres DBMS running on cobweb.ukc.ac.uk).



Operation

As mentioned above, a wrapper provides the interface between the user, and the template toolset. As figure 2 illustrates, the wrapper takes user specified data (e.g. the user ID of a member of staff, a department name, a year, etc.) and a template (whose name is also specified by the user) as command line arguments.

These are then used by the wrapper to make queries of the database through the CAS database library. Once the query results are received, the wrapper uses subroutines from the Template tool library to insert relevant data into the template.

The generated document is then rescanned and localised and externalised versions of it are produced.

You should refer to the documentation for more detail on the operation of the individual components.




 UKC Department Search Research Courses Publications