summaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/skeleton.pm
diff options
context:
space:
mode:
Diffstat (limited to 'IkiWiki/Plugin/skeleton.pm')
-rw-r--r--IkiWiki/Plugin/skeleton.pm10
1 files changed, 10 insertions, 0 deletions
diff --git a/IkiWiki/Plugin/skeleton.pm b/IkiWiki/Plugin/skeleton.pm
index d6d8cc0ed..cae4c02ec 100644
--- a/IkiWiki/Plugin/skeleton.pm
+++ b/IkiWiki/Plugin/skeleton.pm
@@ -13,6 +13,8 @@ sub import { #{{{
call => \&checkconfig);
IkiWiki::hook(type => "preprocess", id => "skeleton",
call => \&preprocess);
+ IkiWiki::hook(type => "filter", id => "skeleton",
+ call => \&filter);
IkiWiki::hook(type => "delete", id => "skeleton",
call => \&delete);
IkiWiki::hook(type => "render", id => "skeleton",
@@ -31,6 +33,14 @@ sub preprocess (@) { #{{{
return "skeleton plugin result";
} # }}}
+sub filter ($) { #{{{
+ my $content=shift;
+
+ IkiWiki::debug("skeleton plugin running as filter");
+
+ return $content;
+} # }}}
+
sub delete (@) { #{{{
my @files=@_;