X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/7a40bcab9a223d29189632cb05d26bc558927520..e82c6b1908b21b5e4246767d6a87fe46245e5e29:/IkiWiki/Plugin/version.pm?ds=sidebyside diff --git a/IkiWiki/Plugin/version.pm b/IkiWiki/Plugin/version.pm index f96d2df06..18e9613ae 100644 --- a/IkiWiki/Plugin/version.pm +++ b/IkiWiki/Plugin/version.pm @@ -7,10 +7,19 @@ use strict; use IkiWiki 2.00; sub import { #{{{ + hook(type => "getsetup", id => "version", call => \&getsetup); hook(type => "needsbuild", id => "version", call => \&needsbuild); hook(type => "preprocess", id => "version", call => \&preprocess); } # }}} +sub getsetup () { #{{{ + return + plugin => { + safe => 1, + rebuild => undef, + }, +} #}}} + sub needsbuild (@) { #{{{ my $needsbuild=shift; foreach my $page (keys %pagestate) {