aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/skeleton.pm.example
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2012-03-28 18:41:47 -0400
committerJoey Hess <joey@kitenet.net>2012-03-28 18:43:07 -0400
commitd68d25526816d40048ca47ad360304bce162b659 (patch)
tree30230ad338c5e9a4d2574cab844399b2ddf3d075 /IkiWiki/Plugin/skeleton.pm.example
parent1916f974722ff509e44c16b4c07c054ef9a11f96 (diff)
downloadikiwiki-d68d25526816d40048ca47ad360304bce162b659.tar
ikiwiki-d68d25526816d40048ca47ad360304bce162b659.tar.gz
Added a "changes" hook. Renamed the "change" hook to "rendered", but
the old hook name is called for now for back-compat.
Diffstat (limited to 'IkiWiki/Plugin/skeleton.pm.example')
-rw-r--r--IkiWiki/Plugin/skeleton.pm.example13
1 files changed, 10 insertions, 3 deletions
diff --git a/IkiWiki/Plugin/skeleton.pm.example b/IkiWiki/Plugin/skeleton.pm.example
index 7974d5e53..956c52201 100644
--- a/IkiWiki/Plugin/skeleton.pm.example
+++ b/IkiWiki/Plugin/skeleton.pm.example
@@ -26,7 +26,8 @@ sub import {
hook(type => "templatefile", id => "skeleton", call => \&templatefile);
hook(type => "pageactions", id => "skeleton", call => \&pageactions);
hook(type => "delete", id => "skeleton", call => \&delete);
- hook(type => "change", id => "skeleton", call => \&change);
+ hook(type => "rendered", id => "skeleton", call => \&rendered);
+ hook(type => "changes", id => "skeleton", call => \&changes);
hook(type => "cgi", id => "skeleton", call => \&cgi);
hook(type => "auth", id => "skeleton", call => \&auth);
hook(type => "sessioncgi", id => "skeleton", call => \&sessioncgi);
@@ -167,10 +168,16 @@ sub delete (@) {
debug("skeleton plugin told that files were deleted: @files");
}
-sub change (@) {
+sub rendered (@) {
my @files=@_;
- debug("skeleton plugin told that changed files were rendered: @files");
+ debug("skeleton plugin told that files were rendered: @files");
+}
+
+sub changes (@) {
+ my @files=@_;
+
+ debug("skeleton plugin told that files were changed: @files");
}
sub cgi ($) {