diff options
author | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2006-07-28 05:26:49 +0000 |
---|---|---|
committer | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2006-07-28 05:26:49 +0000 |
commit | 409e62021c5c05e0184a61d0692697c10a0b8283 (patch) | |
tree | b745279c2c83aee71c279692d680dd997c360f45 /IkiWiki.pm | |
parent | 51d20d72f63b6f633747421c7afde171e189f50d (diff) | |
download | ikiwiki-409e62021c5c05e0184a61d0692697c10a0b8283.tar ikiwiki-409e62021c5c05e0184a61d0692697c10a0b8283.tar.gz |
* Add getopt hook type, this allows plugins to add new command-line options.
* Add --tagbase option to tag plugin.
Diffstat (limited to 'IkiWiki.pm')
-rw-r--r-- | IkiWiki.pm | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/IkiWiki.pm b/IkiWiki.pm index 4964f97a1..2b877a370 100644 --- a/IkiWiki.pm +++ b/IkiWiki.pm @@ -81,6 +81,14 @@ sub checkconfig () { #{{{ require IkiWiki::Rcs::Stub; } + if (exists $hooks{checkconfig}) { + foreach my $id (keys %{$hooks{checkconfig}}) { + $hooks{checkconfig}{$id}{call}->(); + } + } +} #}}} + +sub loadplugins () { #{{{ foreach my $plugin (@{$config{plugin}}) { my $mod="IkiWiki::Plugin::".possibly_foolish_untaint($plugin); eval qq{use $mod}; @@ -88,12 +96,6 @@ sub checkconfig () { #{{{ error("Failed to load plugin $mod: $@"); } } - - if (exists $hooks{checkconfig}) { - foreach my $id (keys %{$hooks{checkconfig}}) { - $hooks{checkconfig}{$id}{call}->(); - } - } } #}}} sub error ($) { #{{{ |