From 6fc96d3e997c31d4ab715575a63f0128553cd047 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Sat, 4 Jun 2011 16:50:07 +0100 Subject: [PATCH] IkiWiki::Render: run scan hooks for internal pages, as well as preprocessing --- IkiWiki/Render.pm | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) 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 { -- 2.26.2