How to Personalize the Created Web Page
The webpage 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/lib/netcomics/html_tmpl/.
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 3 files with the names: head.html,
body_el.html and tail.html, or the webpage 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
- head.html:
- The string "<DATE>" is replaced with
the date of the form "Month day Year".
- If <DATE> is provided with the optional attribute,
FORMAT="", the text between the quotes is used
as the format specifier for the POSIX::strftime() function.
The whole <DATE FORMAT=""> is replaced with the
string produced by strftime(). Escaped double quotes are
not allowed between the quotes. See the manpage for
strftime() on your system.
- body_el.html:
- "<COMIC_FILE>" is replaced with the filename of
the comic.
- "<COMIC_NAME>" is replaced with the name of
the comic.
- "<SIZE>" is replaced with the <IMG> attributes
HEIGHT=# and WEIGHT=#. This will help make rendering the webpage
happen more quickly in most browsers.
- tail.html: The string "<CTIME>" is replaced with
the date as returned by POSIX::ctime().
Ben Hochstedler <hochstrb@cs.rose-hulman.edu>
Last modified: Mon Apr 5 07:03:00 CDT 1999