summaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-09-27 16:34:09 -0400
committerJoey Hess <joey@kodama.kitenet.net>2008-09-27 16:35:56 -0400
commit61426a71868a6863115b0a4e0467756e97953092 (patch)
treee17a4fdef2d2391440ba58d31bc7f45ef9fe4ddb /IkiWiki
parent8d04a1de61fb7498085c2ff59418aa4d2a0189d2 (diff)
Reorganize index file, add a format version field.
Upgrades to the new index format should be transparent. The version field is 3, because 1 was the old textual index, 2 was the pre-versioned format. This also includes some efficiency improvements to index loading, by not copying a hash and using a reference.
Diffstat (limited to 'IkiWiki')
-rw-r--r--IkiWiki/Plugin/edittemplate.pm6
1 files changed, 6 insertions, 0 deletions
diff --git a/IkiWiki/Plugin/edittemplate.pm b/IkiWiki/Plugin/edittemplate.pm
index 846b4e7c8..189a066d8 100644
--- a/IkiWiki/Plugin/edittemplate.pm
+++ b/IkiWiki/Plugin/edittemplate.pm
@@ -16,6 +16,8 @@ sub import { #{{{
call => \&preprocess);
hook(type => "formbuilder", id => "edittemplate",
call => \&formbuilder);
+ hook(type => "refresh", id => "edittemplate",
+ call => \&refresh);
} #}}}
sub getsetup () { #{{{
@@ -138,4 +140,8 @@ sub filltemplate ($$) { #{{{
return $template->output;
} #}}}
+sub refresh () {
+
+}
+
1