Gentext is a general purpose text processor/generator. It can be used
for some of the same tasks as m4 or the C preprocessor. Gentext is
well suited to generate HTML websites, documentation, and XML
documents, from parameterized input source.
Unlike other text processors, gentext generates output by parsing
and executing a functional input source language. The functional
nature makes many tasks much simpler to accomplish using gentext than
traditional text processors.
Sample gentext source files are included in the download packages,
including sample source for HTML website generation similar to this