summaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/skeleton.pm
diff options
context:
space:
mode:
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2006-07-27 23:41:58 +0000
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2006-07-27 23:41:58 +0000
commitdea23a1031b55dbc408e9f99c761fd667331cccd (patch)
treed4f036e9c2ef355693503a0f7ea84158ae549f2b /IkiWiki/Plugin/skeleton.pm
parent8d2c59804253ae513dda89cc6b733478c4c86fb6 (diff)
* Switch pagetemplate hooks to using named parameters.
* Pass a "destpage" parameter to preprocessor and pagetemplate hooks. This will be the page that a source page will be part of, which is different than the source page for inlined pages. * Audited all plugins to endure they pass page, destpage to htmllink appropriatly. This means inlining of various plugins will not work properly, with correct links generated.
Diffstat (limited to 'IkiWiki/Plugin/skeleton.pm')
-rw-r--r--IkiWiki/Plugin/skeleton.pm7
1 files changed, 4 insertions, 3 deletions
diff --git a/IkiWiki/Plugin/skeleton.pm b/IkiWiki/Plugin/skeleton.pm
index 306f54415..acbc88994 100644
--- a/IkiWiki/Plugin/skeleton.pm
+++ b/IkiWiki/Plugin/skeleton.pm
@@ -63,9 +63,10 @@ sub sanitize ($) { #{{{
return $content;
} # }}}
-sub pagetemplate ($$) { #{{{
- my $page=shift;
- my $template=shift;
+sub pagetemplate (@) { #{{{
+ my %params=@_;
+ my $page=$params{page};
+ my $template=$params{template};
IkiWiki::debug("skeleton plugin running as a pagetemplate hook");
} # }}}