https://www.google.com/accounts/o8/id?id=AItOawkxjEWFrqK-cq0Ms5LmExRB4VDjOcddAJs 2012-05-31 08:09:24 -04:00 committed by admin
parent 8eb8755aeb
commit 8aaf5790b8
1 changed files with 8 additions and 0 deletions

View File

@ -0,0 +1,8 @@
I wanted to produce an external link from a ikiwiki Subpage based on
the *basename* of the Subpage. So I added the following code to the
edittemplate plugin:
my ($basename) = $page =~ m!.*/(.*)!;
$template->param(basename => $basename || $page);
Is there any other way I could have achieved this?