X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/ab75c0323bc584203a2b4a507c2a2012523354d0..44c8d863398565860b2f94bbaa28f057a5199565:/IkiWiki/Plugin/skeleton.pm diff --git a/IkiWiki/Plugin/skeleton.pm b/IkiWiki/Plugin/skeleton.pm index e63bab6d7..5947ebb4c 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", @@ -29,7 +31,7 @@ sub import { #{{{ call => \&change); IkiWiki::hook(type => "cgi", id => "skeleton", call => \&cgi); - IkiWiki::hook(type => "cgi", id => "savestate", + IkiWiki::hook(type => "savestate", id => "savestate", call => \&savestate); } # }}} @@ -55,20 +57,28 @@ sub filter (@) { #{{{ return $params{content}; } # }}} -sub htmlize ($) { #{{{ - my $content=shift; +sub htmlize (@) { #{{{ + my %params=@_; IkiWiki::debug("skeleton plugin running as htmlize"); - return $content; + return $params{content}; } # }}} -sub sanitize ($) { #{{{ - my $content=shift; +sub sanitize (@) { #{{{ + my %params=@_; IkiWiki::debug("skeleton plugin running as a sanitizer"); - return $content; + return $params{content}; +} # }}} + +sub format (@) { #{{{ + my %params=@_; + + IkiWiki::debug("skeleton plugin running as a formatter"); + + return $params{content}; } # }}} sub pagetemplate (@) { #{{{