X-Git-Url: http://git.tremily.us/?a=blobdiff_plain;f=IkiWiki%2FRender.pm;h=b4b95e8d4897562b695fe7d5bac5029e1e311fc3;hb=4b36dee35a55b08d6d6f3bb3840220a4956f2540;hp=09b871900da94d6f97627aced76ef5013ad0b342;hpb=a1c7308b7d26915956d938808bbb05c194d60a45;p=ikiwiki.git diff --git a/IkiWiki/Render.pm b/IkiWiki/Render.pm index 09b871900..b4b95e8d4 100644 --- a/IkiWiki/Render.pm +++ b/IkiWiki/Render.pm @@ -187,7 +187,13 @@ sub genpage ($$$) { #{{{ shift->(page => $page, destpage => $page, template => $template); }); - return $template->output; + $content=$template->output; + + run_hooks(format => sub { + $content=shift->($content); + }); + + return $content; } #}}} sub check_overwrite ($$) { #{{{ @@ -352,6 +358,7 @@ sub refresh () { #{{{ debug("new page $page") unless exists $pagectime{$page}; push @add, $file; $links{$page}=[]; + $pagecase{lc $page}=$page; $pagesources{$page}=$file; if ($config{getctime} && -e "$config{srcdir}/$file") { $pagectime{$page}=rcs_getctime("$config{srcdir}/$file");