Photos
Blog
Projects
vanrenterghem.biz
projects
/
git.ikiwiki.info.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix undef warning when page() tests a deleted file
[git.ikiwiki.info.git]
/
IkiWiki
/
Plugin
/
hnb.pm
diff --git
a/IkiWiki/Plugin/hnb.pm
b/IkiWiki/Plugin/hnb.pm
index 40e4f945255df2b4ae21b732cd55818b41dfc821..32c9cf3ada5b1ed3ed65114177fbcade05d0eaf2 100644
(file)
--- a/
IkiWiki/Plugin/hnb.pm
+++ b/
IkiWiki/Plugin/hnb.pm
@@
-10,23
+10,24
@@
package IkiWiki::Plugin::hnb;
use warnings;
use strict;
use warnings;
use strict;
-use IkiWiki
2
.00;
+use IkiWiki
3
.00;
use File::Temp qw(:mktemp);
use File::Temp qw(:mktemp);
-sub import {
#{{{
+sub import {
hook(type => "getsetup", id => "hnb", call => \&getsetup);
hook(type => "htmlize", id => "hnb", call => \&htmlize);
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
return
plugin => {
safe => 1,
rebuild => 1, # format plugin
+ section => "format",
},
},
-}
#}}}
+}
-sub htmlize (@) {
#{{{
+sub htmlize (@) {
my %params = @_;
# hnb outputs version number etc. every time to STDOUT, so
my %params = @_;
# hnb outputs version number etc. every time to STDOUT, so
@@
-52,6
+53,6
@@
sub htmlize (@) { #{{{
$ret =~ s/<body>.*//si;
return $ret;
$ret =~ s/<body>.*//si;
return $ret;
-}
#}}}
+}
1;
1;