]> sipb.mit.edu Git - ikiwiki.git/commit
Provide a UUID in edittemplate templates.
authorJonathon Anderson <anderbubble@gmail.com>
Fri, 25 Jan 2013 05:42:23 +0000 (08:42 +0300)
committerSimon McVittie <smcv@debian.org>
Mon, 1 Sep 2014 07:54:37 +0000 (08:54 +0100)
commit7aa10a2952a0d0ee8543f575966f7e4a780c993c
tree783fc89f0344a12fadffea9305e689700b11d300
parentd5f53139259f57e6554614cede22ed08a59bfce7
Provide a UUID in edittemplate templates.

I want to make GUIDs for my RSS feeds that don't change when I move
pages around.  To that end, I've used UUID::Tiny to generate a
version 4 (random) UUID that is presented in a `uuid` variable in
the template.

At that point, you can do something like this:

    [[!meta guid="urn:uuid:<TMPL_VAR uuid>"]]
IkiWiki/Plugin/edittemplate.pm
doc/ikiwiki/directive/edittemplate.mdwn