<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">#!/usr/bin/perl
# Raw html as a wiki page type.
package IkiWiki::Plugin::html;

use warnings;
use strict;
use IkiWiki 3.00;

sub import {
	hook(type =&gt; "getsetup", id =&gt; "html", call =&gt; \&amp;getsetup);
	hook(type =&gt; "htmlize", id =&gt; "html", call =&gt; \&amp;htmlize);
	hook(type =&gt; "htmlize", id =&gt; "htm", call =&gt; \&amp;htmlize);

	# ikiwiki defaults to skipping .html files as a security measure;
	# make it process them so this plugin can take effect
	$config{wiki_file_prune_regexps} = [ grep { !m/\\\.x\?html\?\$/ } @{$config{wiki_file_prune_regexps}} ];
}

sub getsetup () {
	return
		plugin =&gt; {
			safe =&gt; 1,
			rebuild =&gt; 1, # format plugin
			section =&gt; "format",
		},
}

sub htmlize (@) {
	my %params=@_;
	return $params{content};
}

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