]> sipb.mit.edu Git - ikiwiki.git/blobdiff - doc/todo/Bestdir_along_with_bestlink_in_IkiWiki.pm.mdwn
Add [[!template id=gitbranch]] for things available from git, and use it
[ikiwiki.git] / doc / todo / Bestdir_along_with_bestlink_in_IkiWiki.pm.mdwn
index 180355875282114e595d63fe2b261f6b4627f186..bf8de16cda05ec12ebae9b2de7a42748f865d920 100644 (file)
@@ -1,5 +1,8 @@
 This patch adds function bestdir() which returns best directory from the directory structure. This is in addition to the bestlink() function which is there in IkiWiki.pm 
 
 This patch adds function bestdir() which returns best directory from the directory structure. This is in addition to the bestlink() function which is there in IkiWiki.pm 
 
+> Um, what is this for? :-) It would probably be a lot easier to review if it
+> had documentation, and/or a plugin that used it. --[[smcv]]
+
 -------
 
     Index: IkiWiki.pm
 -------
 
     Index: IkiWiki.pm
@@ -8,9 +11,9 @@ This patch adds function bestdir() which returns best directory from the directo
     +++ IkiWiki.pm  (working copy)
     @@ -391,6 +391,35 @@
             return "";
     +++ IkiWiki.pm  (working copy)
     @@ -391,6 +391,35 @@
             return "";
-     } #}}}
+     }
     
     
-    +sub bestdir ($$) { #{{{
+    +sub bestdir ($$) {
     +    my $page=shift;
     +       my $link=shift;
     +       my $cwd=$page;
     +    my $page=shift;
     +       my $link=shift;
     +       my $cwd=$page;
@@ -37,12 +40,12 @@ This patch adds function bestdir() which returns best directory from the directo
     +       }
     +
     +       return "";
     +       }
     +
     +       return "";
-    +} #}}}
+    +}
     +
     +
-     sub isinlinableimage ($) { #{{{
+     sub isinlinableimage ($) {
             my $file=shift;
     
 ---- 
 -[[users/arpitjain]]
 
             my $file=shift;
     
 ---- 
 -[[users/arpitjain]]
 
-[[tag patch]]
+[[!tag patch patch/core]]