X-Git-Url: https://sipb.mit.edu/gitweb.cgi/ikiwiki.git/blobdiff_plain/40959ce76d159cefaf0431ad2cc61ad35a9f99b1..7cd40ea4eb8955765dc3e61dd3edaf08d1bbab48:/IkiWiki/Plugin/skeleton.pm diff --git a/IkiWiki/Plugin/skeleton.pm b/IkiWiki/Plugin/skeleton.pm index d1a50c03b..17a2162ff 100644 --- a/IkiWiki/Plugin/skeleton.pm +++ b/IkiWiki/Plugin/skeleton.pm @@ -14,6 +14,8 @@ sub import { #{{{ hook(type => "needsbuild", id => "skeleton", call => \&needsbuild); hook(type => "preprocess", id => "skeleton", call => \&preprocess); hook(type => "filter", id => "skeleton", call => \&filter); + hook(type => "linkify", id => "skeleton", call => \&linkify); + hook(type => "scan", id => "skeleton", call => \&scan); hook(type => "htmlize", id => "skeleton", call => \&htmlize); hook(type => "sanitize", id => "skeleton", call => \&sanitize); hook(type => "format", id => "skeleton", call => \&format); @@ -23,10 +25,12 @@ sub import { #{{{ hook(type => "change", id => "skeleton", call => \&change); hook(type => "cgi", id => "skeleton", call => \&cgi); hook(type => "auth", id => "skeleton", call => \&auth); + hook(type => "sessioncgi", id => "skeleton", call => \&sessioncgi); hook(type => "canedit", id => "skeleton", call => \&canedit); + hook(type => "editcontent", id => "skeleton", call => \&editcontent); hook(type => "formbuilder_setup", id => "skeleton", call => \&formbuilder_setup); hook(type => "formbuilder", id => "skeleton", call => \&formbuilder); - hook(type => "savestate", id => "savestate", call => \&savestate); + hook(type => "savestate", id => "skeleton", call => \&savestate); } # }}} sub getopt () { #{{{ @@ -55,6 +59,20 @@ sub filter (@) { #{{{ return $params{content}; } # }}} +sub linkify (@) { #{{{ + my %params=@_; + + debug("skeleton plugin running as linkify"); + + return $params{content}; +} # }}} + +sub scan (@) { #{{{a + my %params=@_; + + debug("skeleton plugin running as scan"); +} # }}} + sub htmlize (@) { #{{{ my %params=@_; @@ -119,6 +137,13 @@ sub auth ($$) { #{{{ debug("skeleton plugin running in auth"); } #}}} +sub sessionncgi ($$) { #{{{ + my $cgi=shift; + my $session=shift; + + debug("skeleton plugin running in sessioncgi"); +} #}}} + sub canedit ($$$) { #{{{ my $page=shift; my $cgi=shift; @@ -127,6 +152,14 @@ sub canedit ($$$) { #{{{ debug("skeleton plugin running in canedit"); } #}}} +sub editcontent ($$$) { #{{{ + my %params=@_; + + debug("skeleton plugin running in editcontent"); + + return $params{content}; +} #}}} + sub formbuilder_setup (@) { #{{{ my %params=@_;