my $page=shift;
my $content=shift;
- run_hooks(postscan => sub {
- shift->(page => $page, content => $content);
+ run_hooks(indexhtml => sub {
+ shift->(page => $page, destpage => $page, content => $content);
});
my $templatefile;
title => $page eq 'index'
? $config{wikiname}
: pagetitle(basename($page)),
- ispage => 1,
wikiname => $config{wikiname},
content => $content,
backlinks => $backlinks,
mtime => displaytime($pagemtime{$page}),
ctime => displaytime($pagectime{$page}, undef, 1),
baseurl => baseurl($page),
- have_footer => 1,
html5 => $config{html5},
);
remove_unrendered();
if (@$del) {
- run_hooks(delete => sub { shift->(@$del) });
+ run_hooks(delete => sub { shift->(@$del, @$internal_del) });
}
if (%rendered) {
run_hooks(change => sub { shift->(keys %rendered) });