(no commit message)
[ikiwiki] / doc / todo / Add_basename_in_edittemplate.mdwn
1 I wanted to produce an external link from a ikiwiki Subpage based on
2 the *basename* of the Subpage. So I added the following code to the
3 edittemplate plugin:
4
5        my ($basename) = $page =~ m!.*/(.*)!;
6        $template->param(basename => $basename || $page);
7
8 Is there any other way I could have achieved this?