From 40959ce76d159cefaf0431ad2cc61ad35a9f99b1 Mon Sep 17 00:00:00 2001 From: joey Date: Thu, 26 Jul 2007 20:50:55 +0000 Subject: * Add templatefile hook. * Add pagetemplate plugin, which allows changing the template used for a page. (Not to be confused with the hook of the same name..) --- IkiWiki/Plugin/skeleton.pm | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'IkiWiki/Plugin/skeleton.pm') diff --git a/IkiWiki/Plugin/skeleton.pm b/IkiWiki/Plugin/skeleton.pm index fb4cfe9af..d1a50c03b 100644 --- a/IkiWiki/Plugin/skeleton.pm +++ b/IkiWiki/Plugin/skeleton.pm @@ -18,6 +18,7 @@ sub import { #{{{ hook(type => "sanitize", id => "skeleton", call => \&sanitize); hook(type => "format", id => "skeleton", call => \&format); hook(type => "pagetemplate", id => "skeleton", call => \&pagetemplate); + hook(type => "templatefile", id => "skeleton", call => \&templatefile); hook(type => "delete", id => "skeleton", call => \&delete); hook(type => "change", id => "skeleton", call => \&change); hook(type => "cgi", id => "skeleton", call => \&cgi); @@ -86,6 +87,13 @@ sub pagetemplate (@) { #{{{ debug("skeleton plugin running as a pagetemplate hook"); } # }}} +sub templatefile (@) { #{{{ + my %params=@_; + my $page=$params{page}; + + debug("skeleton plugin running as a templatefile hook"); +} # }}} + sub delete (@) { #{{{ my @files=@_; -- cgit v1.2.3