aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Render.pm
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2010-08-02 13:39:06 +0200
committerintrigeri <intrigeri@boum.org>2010-08-02 13:39:06 +0200
commita3624aba40a5999e36dc2d5aa9017bfa9b445b57 (patch)
tree09d21e5436b06fa2d99f5e5570fb6fc3373fe830 /IkiWiki/Render.pm
parent46a997db16e68ecdf3e1c13ea444afdb4e767a2f (diff)
downloadikiwiki-a3624aba40a5999e36dc2d5aa9017bfa9b445b57.tar
ikiwiki-a3624aba40a5999e36dc2d5aa9017bfa9b445b57.tar.gz
Run the preprocess hooks in scan mode *before* the scan hooks.
Diffstat (limited to 'IkiWiki/Render.pm')
-rw-r--r--IkiWiki/Render.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/IkiWiki/Render.pm b/IkiWiki/Render.pm
index a653ab2da..9921915b4 100644
--- a/IkiWiki/Render.pm
+++ b/IkiWiki/Render.pm
@@ -174,15 +174,15 @@ sub scan ($) {
}
delete $typedlinks{$page};
+ # Preprocess in scan-only mode.
+ preprocess($page, $page, $content, 1);
+
run_hooks(scan => sub {
shift->(
page => $page,
content => $content,
);
});
-
- # Preprocess in scan-only mode.
- preprocess($page, $page, $content, 1);
}
else {
will_render($file, $file, 1);