]> sipb.mit.edu Git - ikiwiki.git/commitdiff
tla done too
authorJoey Hess <joey@kodama.kitenet.net>
Sat, 26 Jul 2008 22:31:27 +0000 (18:31 -0400)
committerJoey Hess <joey@kodama.kitenet.net>
Sat, 26 Jul 2008 22:31:27 +0000 (18:31 -0400)
IkiWiki/Rcs/tla.pm

index 4232e1fe8372429902b7438f20e6c0c25189ce52..549e9f52d96ea051fa1425cb18f10838d1bba765 100644 (file)
@@ -6,6 +6,26 @@ use warnings;
 use strict;
 use IkiWiki;
 
+hook(type => "getsetup", id => "tla", call => sub { #{{{
+       return
+               historyurl => {
+                       type => "string",
+                       default => "",
+                       #example => "", # TODO example
+                       description => "url to show file history ([[file]] substituted)",
+                       safe => 1,
+                       rebuild => 1,
+               },
+               diffurl => {
+                       type => "string",
+                       default => "",
+                       #example => "", # TODO example
+                       description => "url to show a diff ([[file]] and [[rev]] substituted)",
+                       safe => 1,
+                       rebuild => 1,
+               },
+}); #}}}
+
 sub quiet_system (@) {
        # See Debian bug #385939.
        open (SAVEOUT, ">&STDOUT");