* pagetemplate hooks are now also called when generating cgi pages.
[ikiwiki.git] / IkiWiki.pm
index 6484e8cb0370782bed6182665566779c0215a4cf..174d2413bb93e6fc8b203def020f35f59dd61cb2 100644 (file)
@@ -604,6 +604,9 @@ sub misctemplate ($$;@) { #{{{
                baseurl => baseurl(),
                @_,
        );
+       run_hooks(pagetemplate => sub {
+               shift->(page => "", destpage => "", template => $template);
+       });
        return $template->output;
 }#}}}