summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--IkiWiki.pm1
-rw-r--r--IkiWiki/Plugin/skeleton.pm2
-rw-r--r--debian/changelog4
-rw-r--r--doc/plugins/write.mdwn2
4 files changed, 6 insertions, 3 deletions
diff --git a/IkiWiki.pm b/IkiWiki.pm
index 1cbe975c0..499ec8834 100644
--- a/IkiWiki.pm
+++ b/IkiWiki.pm
@@ -14,6 +14,7 @@ use Exporter q{import};
our @EXPORT = qw(hook debug error template htmlpage add_depends pagespec_match
bestlink htmllink readfile writefile pagetype srcfile pagename
%config %links %renderedfiles %pagesources);
+our $VERSION = 1.00;
# Optimisation.
use Memoize;
diff --git a/IkiWiki/Plugin/skeleton.pm b/IkiWiki/Plugin/skeleton.pm
index 3e1e5700b..acac16c1a 100644
--- a/IkiWiki/Plugin/skeleton.pm
+++ b/IkiWiki/Plugin/skeleton.pm
@@ -6,7 +6,7 @@ package IkiWiki::Plugin::skeleton;
use warnings;
use strict;
-use IkiWiki;
+use IkiWiki '1.00';
sub import { #{{{
hook(type => "getopt", id => "skeleton", call => \&getopt);
diff --git a/debian/changelog b/debian/changelog
index a54a18fa8..52d56aebe 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -14,6 +14,8 @@ ikiwiki (1.27) UNRELEASED; urgency=low
export some other things.
* Changed all plugins included in ikiwiki to not use "IkiWiki::" when
referring to stuff now exported by the IkiWiki module.
+ * Add a module version number to IkiWiki, so you can "use IkiWiki '1.00'"
+ to declare which version of the interface your plugin needs.
* Anyone with a third-party ikiwiki plugin is strongly enrouraged
to make like changes to it and avoid use of non-exported symboles from
"IkiWiki::".
@@ -21,7 +23,7 @@ ikiwiki (1.27) UNRELEASED; urgency=low
* Support hyperestradier version 1.4.2, which adds a new required phraseform
setting.
- -- Joey Hess <joeyh@debian.org> Sat, 9 Sep 2006 18:38:19 -0400
+ -- Joey Hess <joeyh@debian.org> Sat, 9 Sep 2006 18:56:10 -0400
ikiwiki (1.26) unstable; urgency=low
diff --git a/doc/plugins/write.mdwn b/doc/plugins/write.mdwn
index 8886bca29..a78785e02 100644
--- a/doc/plugins/write.mdwn
+++ b/doc/plugins/write.mdwn
@@ -173,7 +173,7 @@ they're saved, etc.
To import the ikiwiki plugin interface:
- use IkiWiki;
+ use IkiWiki '1.00';
This will import several variables and functions into your plugin's
namespace. These variables and functions are the ones most plugins need,