How to Personalize the Created Web Page

The web page is created from three template files: a head (contains more than just the html head section): head.html, a body element: body_el#.html, and a tail: tail.html. The head & tail are used once, and the body element is repeated for each comic strip. The files are installed by default under /usr/share/netcomics/html_tmpl/.

There are multiple body_el#.html files. The number indicates the number of image files in a comic that template handles. For example, some comic strips provide each panel on Sunday in a seperate file. If there are 5 frames total, then body_el5.html will be used. Inside it are 5 places for the file names to be inserted. (Yes, I don't like this design, but it was quick. At some point, I'll change it so that there's 2 templates for the body elements--a template wrapper around a set of file element templates, and a file element template.)

Since you are allowed to specify a different directory to contain these files with the -m option, if you do use that option, you must create a set of template html files, or the web page will not be created when using the -w or -W options. I suggest copying the template files and modifying them instead of starting from scratch.

What's replaced in the template files when writing out index.html


Ben Hochstedler <hochstrb@cs.rose-hulman.edu>
Last modified: Wed Dec 1 10:56:25 CST 1999