Using the html-macros file

This file contains the macros I wrote. It should contain macros which are useful for the production of html in general. You will probably define additional macros for given web projects. These should be put in separate files. I generally have a macro file for each project I am working on, and each of these includes the above file.

In the simplest case, your .htm4l files include this file. In m4 there is an include macro that can be used as follows:


Notice that m4 uses grave and acute marks to delimit strings. It is normal to use these quotes around every argument to an m4 macro. If you know what you're doing, there are occasions when you may wish to omit them. See your documentation for m4 (if you have any) or follow links from my m4 page.

Once the above file is included in your .htm4l file, you can make use of the macros it defines. You can (and should) mix macro calls and ordinary html freely in the same document. Several examples of macro use can be found on the examples page.

Back to the htm4l home page.
© Terry Jones (terry <AT> Last modified: Mon Oct 2 02:22:03 CEST 2006