txtdir2html

The txtdir2html program converts a directory of *.txt files into *.html files using Webc.

The user has a couple of files which control processing. template.wc is a webc template which gives the basic HTML for each file. Where _FILE-TEXT_ is found, it is replaced with the contents of the file. Where txtdir2html is found, it is replaced with the first line of the appropriate *.txt file. index.wc is used to build an index.html file. Where _DIRECTORY_ is found, it is replaced with an index of all of the pages in the directory.

The *.txt files are simple text files which are processed into HTML with some simple rules.

There are certain parameters and startup files. All parameters can be specified in any place. Parameters take precidence over ~/.txtdir2html.rc which takes precidence over /etc/txtdir2html.rc.

You can see a sample of this application.


You can pick up the entire archive for version v0.04. This contains all of the files mentioned on this page.

Once you have the tar file, you will need to extract and build it. Do something like the following:

	cd
	mkdir txtdir2html
	tar xvfz txtdir2html-0.04.tar.gz
	cd txtdir2html-0.04
	make