Requirements:
-* Need to keep track of creation dates of pages in the index file.
* Need to keep track of the globlists in the index file.
* Need to pick a good token and note that the token will need to be passed
multiple parameters. Possibly something like this:
use HTML::Template;
use lib '.'; # For use without installation, removed by Makefile.
-use vars qw{%config %links %oldlinks %oldpagemtime %renderedfiles %pagesources};
+use vars qw{%config %links %oldlinks %oldpagemtime %pagectime
+ %renderedfiles %pagesources};
sub usage () { #{{{
die "usage: ikiwiki [options] source dest\n";
my $page=pagename($items{src}[0]);
$pagesources{$page}=$items{src}[0];
$oldpagemtime{$page}=$items{mtime}[0];
+ $pagectime{$page}=$items{ctime}[0];
$oldlinks{$page}=[@{$items{link}}];
$links{$page}=[@{$items{link}}];
$renderedfiles{$page}=$items{dest}[0];
error("cannot write to $config{wikistatedir}/index: $!");
foreach my $page (keys %oldpagemtime) {
my $line="mtime=$oldpagemtime{$page} ".
+ "ctime=$pagectime{$page} ".
"src=$pagesources{$page} ".
"dest=$renderedfiles{$page}";
if ($oldpagemtime{$page}) {