2 package IkiWiki::Plugin::more;
8 my $linktext = gettext("more");
11 hook(type => "getsetup", id => "more", call => \&getsetup);
12 hook(type => "preprocess", id => "more", call => \&preprocess);
15 sub getsetup () { #{{{
23 sub preprocess (@) { #{{{
26 $params{linktext} = $linktext unless defined $params{linktext};
28 if ($params{page} ne $params{destpage}) {
30 htmllink($params{page}, $params{destpage}, $params{page},
31 linktext => $params{linktext},
35 $params{text}=IkiWiki::preprocess($params{page}, $params{destpage},
36 IkiWiki::filter($params{page}, $params{destpage}, $params{text}));
37 return "<a name=\"more\"></a>\n\n".$params{text};