]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki/Plugin/inline.pm
- Adds a tag plugin that allows more easily tagging pages.
[ikiwiki.git] / IkiWiki / Plugin / inline.pm
index 08126c4e6f6f6a399de8b2346626ed908d3a5734..749e39fb63524b1065a8bcc04446e5b0497be702 100644 (file)
@@ -80,7 +80,15 @@ sub preprocess_inline (@) { #{{{
                $template->param(content => get_inline_content($params{page}, $page))
                        if $params{archive} eq "no";
                $template->param(ctime => displaytime($pagectime{$page}));
+
+               if (exists $hooks{pagetemplate}) {
+                       foreach my $id (keys %{$hooks{pagetemplate}}) {
+                               $hooks{pagetemplate}{$id}{call}->($page, $template);
+                       }
+               }
+
                $ret.=$template->output;
+               $template->clear_params;
        }
        
        # TODO: should really add this to renderedfiles and call