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
bap -(i|e|b) src_file [output_directory]
i -- internal
e -- external
b -- both (internal and external)Examples:
bap -b foo.templateProducesfoo.local
andfoo.html
in the current directory.bap -i foo.template /usr/local/barProducesfoo.local
only in the directory/usr/local/bar
.
.template
file extension.
.template
file can be found at
/web/cs/docs/skeleton.template
. Alternatively,
adapt the template provided here.
#head "Brief sentence describing the webpage content goes here" #createInclude "$includeMetadata" <H1>Title Goes Here</H1> <P> Some text </P> <BR><BR><BR>
~/webpages
directory or any research group directory, you should
make them at least world readable (and world executable for
directories) so the web server can access them.