@@ -26,12 +26,13 @@ multi method render(Pod::Block $pod, Str :$header = '', Str :$footer = '', Str :
26
26
}
27
27
28
28
multi method render (IO ::Path $ file , Str : $ header = ' ' , Str : $ footer = ' ' , Str : head-fields($ head ) = ' ' , : $ default-title = ' ' , : $ lang = ' en' ) {
29
-
30
- pod2html(load($ file ), : $ header , : $ footer , : $ head , : $ default-title , : $ lang );
29
+ Debug { note colored(" Rendering with IO::Path" , " bold" ) ~ load($ file ). perl }
30
+
31
+ pod2html(load($ file ), : $ header , : $ footer , : $ head , : $ default-title , : $ lang );
31
32
}
32
33
33
34
multi method render (Str $ pod-string , Str : $ header = ' ' , Str : $ footer = ' ' , Str : head-fields($ head ) = ' ' , : $ default-title = ' ' , : $ lang = ' en' ) {
34
- pod2html($ pod-string , : $ header , : $ footer , : $ head , : $ default-title , : $ lang );
35
+ pod2html(load( $ pod-string ) , : $ header , : $ footer , : $ head , : $ default-title , : $ lang );
35
36
}
36
37
37
38
# FIXME: this code's a horrible mess. It'd be really helpful to have a module providing a generic
@@ -184,6 +185,7 @@ sub pod2html(
184
185
# | Keep count of how many footnotes we've output.
185
186
my Int $ * done-notes = 0 ;
186
187
& OUTER ::url = & url ;
188
+ Debug { note colored(" About to call node2html " , " bold" ) ~ $ pod . perl };
187
189
@ body . push : node2html($ pod . map : { visit $ _ , : assemble(& assemble-list-items ) });
188
190
my $ title_html = $ title // $ default-title // ' ' ;
189
191
@@ -478,7 +480,8 @@ multi sub node2html(Pod::Item $node) {
478
480
}
479
481
480
482
multi sub node2html (Positional $ node ) {
481
- return $ node . map ({ node2html($ _ ) }). join
483
+ Debug { note colored(" Positional node2html called for " , " bold" ) ~ $ node . gist };
484
+ return $ node . map ({ node2html($ _ ) }). join
482
485
}
483
486
484
487
multi sub node2html (Str $ node ) {
0 commit comments