X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/e49ff966a39d1037ccbf168b8dbd12618cf1b41e..fe5c48f3a002df1867d045b3767900f83817038a:/IkiWiki/Plugin/skeleton.pm?ds=inline diff --git a/IkiWiki/Plugin/skeleton.pm b/IkiWiki/Plugin/skeleton.pm index 1201d055c..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", @@ -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 (@) { #{{{