]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blob - doc/todo/Add_basename_in_edittemplate.mdwn
Try revert operations (on a branch) before approving them
[git.ikiwiki.info.git] / 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:
5        my ($basename) = $page =~ m!.*/(.*)!;
6        $template->param(basename => $basename || $page);
8 Is there any other way I could have achieved this?