How to Personalize the Created Web Page

The web page is created from a perl module in the namespace Netcomics::HTML::Themes. Copy the following template:

package Netcomics::HTML::Themes::ThemeName;
use vars '@ISA'; @ISA = ("Netcomics::HTML::Themes::Default");
use strict;

my (%html,%imgs);

sub new {
    my $class = shift;
    return $class->SUPER::new("Theme Name",\%imgs,\%html);


Then for each part of the default theme you want to change, copy it from the theme file into yours and modify it. If you don't want to use any of the Default theme, then make your's ISA line be "Netcomics::HTML::Theme".

To make a theme with images, use the mktheme script in the contrib directory (or doc directory if installed from an rpm) to produce the perl code from a set of images. To get the actual images out of their mime-encoded form, use the theme to create a set of html pages, and it will place them in a subdirectory ".theme". See the CleanRound theme for an example. Note that you can name the image files whatever you want--and they don't even have to be images either.

The html hash has 10 keys, each of which is refered to in here as a "section":

How to Personalize the Created Web Page (Old Style, pre-0.14 release)

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

Netcomics Maintainers <>
Last modified: Thu May 30 08:33:10 CDT 2002