aboutsummaryrefslogtreecommitdiff
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 1201d055c..4683b00ba 100644
--- a/IkiWiki/Plugin/skeleton.pm
+++ b/IkiWiki/Plugin/skeleton.pm
@@ -21,6 +21,8 @@ sub import { #{{{
call => \&htmlize);
IkiWiki::hook(type => "sanitize", id => "skeleton",
call => \&sanitize);
+ IkiWiki::hook(type => "format", id => "skeleton",
+ call => \&format);
IkiWiki::hook(type => "pagetemplate", id => "skeleton",
call => \&pagetemplate);
IkiWiki::hook(type => "delete", id => "skeleton",
@@ -71,6 +73,14 @@ sub sanitize ($) { #{{{
return $content;
} # }}}
+sub format ($) { #{{{
+ my $content=shift;
+
+ IkiWiki::debug("skeleton plugin running as a formatter");
+
+ return $content;
+} # }}}
+
sub pagetemplate (@) { #{{{
my %params=@_;
my $page=$params{page};