aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/skeleton.pm
diff options
context:
space:
mode:
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2006-08-28 07:40:20 +0000
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2006-08-28 07:40:20 +0000
commite16746a52f40f478af1b634c532d90c25cc0ec76 (patch)
tree2ef03282413737d0fed459903b176ea96e6267c0 /IkiWiki/Plugin/skeleton.pm
parente5b323a6331df4f400ea5a3eaa82441f85d41950 (diff)
downloadikiwiki-e16746a52f40f478af1b634c532d90c25cc0ec76.tar
ikiwiki-e16746a52f40f478af1b634c532d90c25cc0ec76.tar.gz
* Add toc (table of contents) plugin.
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};