@@ -102,7 +102,7 @@ (Bool :$debug, Bool :$typegraph = False)
102
102
my $ pod = eval slurp ($ file . path ) ~ " \n \$=pod" ;
103
103
$ pod .= [0 ];
104
104
if $ what eq ' language' {
105
- spurt " html/$ what /$ podname .html" , pod2html ($ pod , : url( & url-munge ), : $ footer );
105
+ spurt " html/$ what /$ podname .html" , p2h ($ pod );
106
106
if $ podname eq ' operators' {
107
107
my @ chunks = chunks-grep($ pod . content,
108
108
: from({ $ _ ~~ Pod ::Heading and . level == 2 }),
@@ -438,9 +438,7 @@ (Bool :$debug, Bool :$typegraph = False)
438
438
pod-item(pod-link(. key , . value ))
439
439
}),
440
440
);
441
- my $ file = open : w, " html/index.html" ;
442
- $ file . print : pod2html($ pod , : url(& url-munge ), : $ footer );
443
- $ file . close ;
441
+ spurt ' html/index.html' , p2h($ pod );
444
442
}
445
443
446
444
sub write-routine-file (: $ name ! , : @ chunks ! ) {
@@ -454,9 +452,7 @@ (Bool :$debug, Bool :$typegraph = False)
454
452
@$ chunk
455
453
})
456
454
);
457
- my $ file = open : w, " html/routine/$ name .html" ;
458
- $ file . print : pod2html($ pod , : url(& url-munge ), : $ footer );
459
- $ file . close ;
455
+ spurt " html/routine/$ name .html" , p2h($ pod );
460
456
}
461
457
462
458
sub footer-html () {
0 commit comments