Standard formatting
A perl script is used to apply common formatting to each page, this includes:-
- Meta data in header including description and keyword fields
- standard links on right hand of each page.
- Standard JavaScript to auto generate cascading style sheet links
- Standard javascript in header for rollover image buttons
- Standard footer containing references to CVS version number and/or update date.
Two common html fragments were produced one to go immediately after the <body> tag and one for immediately before the </body> tag, between them they formed a table with the rest of the page within one of the cells, titles and footers within others.
A third html fragment was produced to go in the header section, this contained required JavaScript code.
A separate file contains a list of keywords, and a description, these were then automatically added to each html file using a perl script.
To cope with the minor variation within each post body section (the title is a town name and varies from page to page) a tag of the form $ ( group ) was included within the html, the perl script replaced this with the contents of a meta tag within the original html with the name group.
The perl script also checks for bad references, and replaces simple graphic buttons with rollover buttons using a standardised naming convention.
A hypertext link that is an image will be replaced by a rollover when the given image name is *-btn.yyy and there also exists a file *-btn-over.yyy. We do not use GoLives standard rollover facilities, this allows us greater flexibility, and the certainty that we can use other editors if necessary.
|