<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">#!/usr/bin/perl
# Ikiwiki skeleton plugin. Replace "skeleton" with the name of your plugin
# in the lines below, remove hooks you don't use, and flesh out the code to
# make it do something.
package IkiWiki::Plugin::skeleton;

use warnings;
use strict;
use IkiWiki;

sub import { #{{{
	IkiWiki::hook(type =&gt; "checkconfig", id =&gt; "skeleton", 
		call =&gt; \&amp;checkconfig);
	IkiWiki::hook(type =&gt; "preprocess", id =&gt; "skeleton", 
		call =&gt; \&amp;preprocess);
	IkiWiki::hook(type =&gt; "filter", id =&gt; "skeleton", 
		call =&gt; \&amp;filter);
	IkiWiki::hook(type =&gt; "delete", id =&gt; "skeleton", 
		call =&gt; \&amp;delete);
	IkiWiki::hook(type =&gt; "render", id =&gt; "skeleton", 
		call =&gt; \&amp;render);
	IkiWiki::hook(type =&gt; "cgi", id =&gt; "skeleton", 
		call =&gt; \&amp;cgi);
} # }}}

sub checkconfig () { #{{{
	IkiWiki::debug("skeleton plugin checkconfig");
} #}}}

sub preprocess (@) { #{{{
	my %params=@_;

	return "skeleton plugin result";
} # }}}

sub filter ($) { #{{{
	my $content=shift;
	
	IkiWiki::debug("skeleton plugin running as filter");

	return $content;
} # }}}

sub delete (@) { #{{{
	my @files=@_;

	IkiWiki::debug("skeleton plugin told that files were deleted: @files");
} #}}}

sub render (@) { #{{{
	my @files=@_;

	IkiWiki::debug("skeleton plugin told that files were rendered: @files");
} #}}}

sub cgi ($) { #{{{
	my $cgi=shift;

	IkiWiki::debug("skeleton plugin running in cgi");
} #}}}

1
</pre></body></html>