aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/skeleton.pm.example
diff options
context:
space:
mode:
authorJoey Hess <joey@gnu.kitenet.net>2009-09-10 14:04:46 -0400
committerJoey Hess <joey@gnu.kitenet.net>2009-09-10 14:04:46 -0400
commit3ebd4e0b45a8a6bd4c12604a3bb683dcb3a60eb8 (patch)
tree0f6ef27852b074284cffcbe009ce4eb0f0a0c13c /IkiWiki/Plugin/skeleton.pm.example
parent98ed7cb1d7f99790821b99b3779d6685114fa662 (diff)
downloadikiwiki-3ebd4e0b45a8a6bd4c12604a3bb683dcb3a60eb8.tar
ikiwiki-3ebd4e0b45a8a6bd4c12604a3bb683dcb3a60eb8.tar.gz
Add genwrapper hook, that can be used to add code into the C wrapper.
Diffstat (limited to 'IkiWiki/Plugin/skeleton.pm.example')
-rw-r--r--IkiWiki/Plugin/skeleton.pm.example5
1 files changed, 5 insertions, 0 deletions
diff --git a/IkiWiki/Plugin/skeleton.pm.example b/IkiWiki/Plugin/skeleton.pm.example
index 573510191..ddf2996d6 100644
--- a/IkiWiki/Plugin/skeleton.pm.example
+++ b/IkiWiki/Plugin/skeleton.pm.example
@@ -39,6 +39,7 @@ sub import {
hook(type => "renamepage", id => "skeleton", call => \&renamepage);
hook(type => "rename", id => "skeleton", call => \&rename);
hook(type => "savestate", id => "skeleton", call => \&savestate);
+ hook(type => "genwrapper", id => "skeleton", call => \&genwrapper);
}
sub getopt () {
@@ -239,4 +240,8 @@ sub savestate () {
debug("skeleton plugin running in savestate");
}
+sub genwrapper () {
+ debug("skeleton plugin running in genwrapper");
+}
+
1