From: Simon McVittie Date: Sat, 4 Jun 2011 15:50:07 +0000 (+0100) Subject: IkiWiki::Render: run scan hooks for internal pages, as well as preprocessing X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6fc96d3e997c31d4ab715575a63f0128553cd047;p=ikiwiki.git IkiWiki::Render: run scan hooks for internal pages, as well as preprocessing --- diff --git a/IkiWiki/Render.pm b/IkiWiki/Render.pm index 5288abc6d..05132a8a8 100644 --- a/IkiWiki/Render.pm +++ b/IkiWiki/Render.pm @@ -475,8 +475,18 @@ sub find_changed ($) { $pagemtime{$page}=$stat[9]; if (isinternal($page)) { + my $content = readfile($srcfile); + # Preprocess internal page in scan-only mode. - preprocess($page, $page, readfile($srcfile), 1); + preprocess($page, $page, $content, 1); + + run_hooks(scan => sub { + shift->( + page => $page, + content => $content, + ); + }); + push @internal_changed, $file; } else {