]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki/Plugin/hnb.pm
Add NetBSD-style 2-clause BSD license.
[ikiwiki.git] / IkiWiki / Plugin / hnb.pm
index 40e4f945255df2b4ae21b732cd55818b41dfc821..bd2177a06a1217de57700c40de641e9794133b5f 100644 (file)
@@ -10,23 +10,23 @@ package IkiWiki::Plugin::hnb;
 
 use warnings;
 use strict;
-use IkiWiki 2.00;
+use IkiWiki 3.00;
 use File::Temp qw(:mktemp);
 
-sub import { #{{{
+sub import {
        hook(type => "getsetup", id => "hnb", call => \&getsetup);
        hook(type => "htmlize", id => "hnb", call => \&htmlize);
-} #}}}
+}
 
-sub getsetup () { #{{{
+sub getsetup () {
        return
                plugin => {
                        safe => 1,
                        rebuild => 1, # format plugin
                },
-} #}}}
+}
 
-sub htmlize (@) { #{{{
+sub htmlize (@) {
        my %params = @_;
 
        # hnb outputs version number etc. every time to STDOUT, so
@@ -52,6 +52,6 @@ sub htmlize (@) { #{{{
        $ret =~ s/<body>.*//si;
 
        return $ret;
-} #}}}
+}
 
 1;