Internal Users

Related Links

University Links

bap (Build Any Page)

bap creates internal and external pages from a template or source file. It is particularly useful for building pages in the Computing Laboratory style without having to write the complex HTML that implements the style (it separates logical from physical markup).

The source file should be written in the Template Definition Language. Note that information inserts will not work: bap does not connect to the DBMS.

If you want to include metadata in the webpage you must provide a separate file containing the metadata information. This file must have the same filename stem as the template file but with a .meta suffix. For example:

template filename: index.template
metadata filename: index.meta

This file is included with the template instruction #createInclude "$includeMetadata" as per the skeleton template shown below.

Using metadata to aid search engine rankings

Usage

bap -(i|e|b) src_file [output_directory]
i -- internal
e -- external
b -- both (internal and external)

Examples:

bap -b foo.template
Produces foo.local and foo.html in the current directory.
bap -i foo.template /usr/local/bar
Produces foo.local only in the directory /usr/local/bar.

Notes