diff options
author | Simon McVittie <smcv@debian.org> | 2011-06-04 16:50:07 +0100 |
---|---|---|
committer | Simon McVittie <smcv@debian.org> | 2011-06-04 16:50:07 +0100 |
commit | 6fc96d3e997c31d4ab715575a63f0128553cd047 (patch) | |
tree | 4b30b03dd4baad87fd5a17ca26cbdeab457c2036 /IkiWiki | |
parent | d5a3335e15cc2203dd357e6e55fa9d15bc39a181 (diff) | |
download | ikiwiki-6fc96d3e997c31d4ab715575a63f0128553cd047.tar ikiwiki-6fc96d3e997c31d4ab715575a63f0128553cd047.tar.gz |
IkiWiki::Render: run scan hooks for internal pages, as well as preprocessing
Diffstat (limited to 'IkiWiki')
-rw-r--r-- | IkiWiki/Render.pm | 12 |
1 files changed, 11 insertions, 1 deletions
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 { |