From 61426a71868a6863115b0a4e0467756e97953092 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Sat, 27 Sep 2008 16:34:09 -0400 Subject: 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. --- IkiWiki/Plugin/edittemplate.pm | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'IkiWiki/Plugin') 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 -- cgit v1.2.3