hmmm
I decided to rewrite my webpage, and this time to create
scripts that will create all the html from a template file
and some .content files. The basics work great. However,
now I'm considering how to handle "special case" pages, like
my screenshots page nad my random pictures page. On those
pages I want to take a dir of images with one file that
contains captions and automagically create an index page
containing thumbnails that link to pages with the actual
pictures (or the image files themselves, in the screenshot
page). Right now, my main script looks for all the .content
files in the main dir and creates .html files from those. I
also have a couple of scripts that will create the "special"
pages on their own. I'm trying to see if I can come up with
a way of having one script do it all for me, and whether
that will just be nasty (do i have a .pages file that tells
my script which pages are "special"....
I know that there are 10,000 packages out there that will do
exactly what I'm doing now for me much more elegantly and
better than anything I can write, but writing this crap is
helping me with the depression I've been struggling with for
the last several days.
sigh
update
I of course realized that i was being an idiot. All I have
to do is create the custom .content files seperately, and
then my script can create the html from those. So the main
body of my script looks like:
#!/usr/bin/perl
&make_pixcontent;
&make_sscontent;
&make_html;
inside the make_pixcontent and make_sscontent subs I create
a .content page that, when parsed, creates an index page of
all the images thumbnailed, and then a bunch of .content
files that parse to have the full sized image on the page.
Whee!