aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/skeleton.pm.example
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-07-26 00:38:13 -0400
committerJoey Hess <joey@kodama.kitenet.net>2008-07-26 00:38:13 -0400
commit84c905ec2011ec846d3d8b27f21f5ffd53c73840 (patch)
treea9c84e91314ea4939bc6dc46492a86784e35fef2 /IkiWiki/Plugin/skeleton.pm.example
parentb74b7ab68b983b3f7d9e561eb991b21764cdb3be (diff)
downloadikiwiki-84c905ec2011ec846d3d8b27f21f5ffd53c73840.tar
ikiwiki-84c905ec2011ec846d3d8b27f21f5ffd53c73840.tar.gz
finish adding getsetup hooks to plugins
Diffstat (limited to 'IkiWiki/Plugin/skeleton.pm.example')
-rw-r--r--IkiWiki/Plugin/skeleton.pm.example12
1 files changed, 12 insertions, 0 deletions
diff --git a/IkiWiki/Plugin/skeleton.pm.example b/IkiWiki/Plugin/skeleton.pm.example
index 1af8e4e9d..716ba63dd 100644
--- a/IkiWiki/Plugin/skeleton.pm.example
+++ b/IkiWiki/Plugin/skeleton.pm.example
@@ -10,6 +10,7 @@ use IkiWiki 2.00;
sub import { #{{{
hook(type => "getopt", id => "skeleton", call => \&getopt);
+ hook(type => "getsetup", id => "skeleton", call => \&getsetup);
hook(type => "checkconfig", id => "skeleton", call => \&checkconfig);
hook(type => "needsbuild", id => "skeleton", call => \&needsbuild);
hook(type => "preprocess", id => "skeleton", call => \&preprocess);
@@ -38,6 +39,17 @@ sub getopt () { #{{{
debug("skeleton plugin getopt");
} #}}}
+sub getsetup () { #{{{
+ return
+ skeleton => {
+ type => "boolean",
+ default => 0,
+ description => "example option",
+ safe => 0,
+ rebuild => 0,
+ },
+} #}}}
+
sub checkconfig () { #{{{
debug("skeleton plugin checkconfig");
} #}}}