1 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
3 > Um, what is this for? :-) It would probably be a lot easier to review if it
4 > had documentation, and/or a plugin that used it. --[[smcv]]
9 ===================================================================
10 --- IkiWiki.pm (revision 9)
11 +++ IkiWiki.pm (working copy)
21 + if ($link=~s/^\/+//) {
27 + $l.="/" if length $l;
29 + if (-d "$config{srcdir}/$l") {
32 + } while $cwd=~s!/?[^/]+$!!;
34 + if (length $config{userdir}) {
35 + my $l = "$config{userdir}/".lc($link);
45 sub isinlinableimage ($) {
51 [[!tag patch patch/core]]