X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/78a7f6938f24e6ccf60b5a50400e728cb2b98ff9..a9e45d868b721de2edba958a41fafa05c548359c:/IkiWiki/Plugin/hnb.pm?ds=sidebyside diff --git a/IkiWiki/Plugin/hnb.pm b/IkiWiki/Plugin/hnb.pm index 846b0f2c9..40e4f9452 100644 --- a/IkiWiki/Plugin/hnb.pm +++ b/IkiWiki/Plugin/hnb.pm @@ -13,11 +13,20 @@ use strict; use IkiWiki 2.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 htmlize (@) { +sub getsetup () { #{{{ + return + plugin => { + safe => 1, + rebuild => 1, # format plugin + }, +} #}}} + +sub htmlize (@) { #{{{ my %params = @_; # hnb outputs version number etc. every time to STDOUT, so @@ -43,6 +52,6 @@ sub htmlize (@) { $ret =~ s/.*//si; return $ret; -} +} #}}} 1;