projects
/
ikiwiki.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Added a rescan hook.
[ikiwiki.git]
/
IkiWiki
/
Render.pm
diff --git
a/IkiWiki/Render.pm
b/IkiWiki/Render.pm
index a653ab2da02e542828349c3d9f3ac200340608f4..5ce802317f68d3da036aa1894708f97f92152186 100644
(file)
--- a/
IkiWiki/Render.pm
+++ b/
IkiWiki/Render.pm
@@
-183,6
+183,14
@@
sub scan ($) {
# Preprocess in scan-only mode.
preprocess($page, $page, $content, 1);
+
+ run_hooks(rescan => sub {
+ shift->(
+ page => $page,
+ content => $content,
+ );
+ });
+
}
else {
will_render($file, $file, 1);