bubble



I've created these pages by hand, without using an html editor, which for my purposes seemed an effort to use. The only problem I encountered was one of code replication- the same block of code (for example the navigation bar, or the footer at the bottom of each page) was being replicated in each document. If I wanted to make changes to the footer of the document, I would have to edit each file by hand- a real pain in the neck when you have several pages.

To get around this problem, I created a simple program called (for want of a better name) bubble, which would allow me to 'include' chunks of code from one file into another. I'm sure better solutions are available elsewhere, but for me it was quicker to just write it myself rather than search for it.

The program works by writing small files of includable html, which I have given the extension '.ihtml' for ease of identification. Include commands are placed in the source code of a raw html file with the extension '.rhtml'. The bubble program is run, and if it's not informed othewise by optional flags, finds all .rhtml files in the current directory and compiles them into .html files.

This approach proved especially useful recently, when I changed all fonts, horizontal rulers, footer bars etc on my site.

Counter by Count 2.5
[ home | contents | photos | links | me | music | skydiving ]

last modified - 09-nov-2000
alan davies - b-3909
mailto - al_d@videotron.ca

Download Netscape Now Connectivity supplied by Demon Internet

The Author is a member of the HTML Writers Guild