aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/edittemplate.pm
diff options
context:
space:
mode:
Diffstat (limited to 'IkiWiki/Plugin/edittemplate.pm')
-rw-r--r--IkiWiki/Plugin/edittemplate.pm8
1 files changed, 8 insertions, 0 deletions
diff --git a/IkiWiki/Plugin/edittemplate.pm b/IkiWiki/Plugin/edittemplate.pm
index e3ce5e3d9..6e8c256da 100644
--- a/IkiWiki/Plugin/edittemplate.pm
+++ b/IkiWiki/Plugin/edittemplate.pm
@@ -139,6 +139,14 @@ sub filltemplate ($$) {
$template->param(name => $page);
+ eval {
+ require UUID::Tiny;
+ UUID::Tiny->import(':std');
+ my $uuid;
+ $uuid = create_uuid_as_string(UUID_V4());
+ $template->param(uuid => $uuid);
+ };
+
return $template->output;
}