From be56970d0565cc259bf28b1a3aa9582269c8d41f Mon Sep 17 00:00:00 2001 From: joey Date: Thu, 4 May 2006 04:29:37 +0000 Subject: * Added smiley plugin, nicely controlled and documented by the smileys page. * Copied in some smileys from Moin Moin. --- IkiWiki/Plugin/skeleton.pm | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'IkiWiki/Plugin') diff --git a/IkiWiki/Plugin/skeleton.pm b/IkiWiki/Plugin/skeleton.pm index d6d8cc0ed..cae4c02ec 100644 --- a/IkiWiki/Plugin/skeleton.pm +++ b/IkiWiki/Plugin/skeleton.pm @@ -13,6 +13,8 @@ sub import { #{{{ call => \&checkconfig); IkiWiki::hook(type => "preprocess", id => "skeleton", call => \&preprocess); + IkiWiki::hook(type => "filter", id => "skeleton", + call => \&filter); IkiWiki::hook(type => "delete", id => "skeleton", call => \&delete); IkiWiki::hook(type => "render", id => "skeleton", @@ -31,6 +33,14 @@ sub preprocess (@) { #{{{ return "skeleton plugin result"; } # }}} +sub filter ($) { #{{{ + my $content=shift; + + IkiWiki::debug("skeleton plugin running as filter"); + + return $content; +} # }}} + sub delete (@) { #{{{ my @files=@_; -- cgit v1.2.3