summaryrefslogtreecommitdiff
path: root/IkiWiki/Render.pm
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-07-17 15:16:56 -0400
committerJoey Hess <joey@kodama.kitenet.net>2008-07-17 16:17:15 -0400
commit584f3e3061e8983e4caa328d7bc16fdeba849654 (patch)
tree4417efdf3ccd866c866ec9ab2cfd1faa030346cc /IkiWiki/Render.pm
parent1b46f52043aa6eff37da3677d7bdf11944b733ab (diff)
Add a postscan hook.
* Add a postscan hook. * search: Use postscan hook, avoid updating index when previewing.
Diffstat (limited to 'IkiWiki/Render.pm')
-rw-r--r--IkiWiki/Render.pm4
1 files changed, 4 insertions, 0 deletions
diff --git a/IkiWiki/Render.pm b/IkiWiki/Render.pm
index 8a79119cd..fc1bc0c92 100644
--- a/IkiWiki/Render.pm
+++ b/IkiWiki/Render.pm
@@ -117,6 +117,10 @@ sub genpage ($$) { #{{{
});
$content=$template->output;
+
+ run_hooks(postscan => sub {
+ shift->(page => $page, content => $content);
+ });
run_hooks(format => sub {
$content=shift->(