ikiwiki/doc/todo/Add_basename_in_edittemplat...

9 lines
314 B
Plaintext
Raw Normal View History

2012-05-31 14:09:24 +02:00
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?