We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6344083 commit ba845d4Copy full SHA for ba845d4
htmlify.pl
@@ -88,15 +88,20 @@
88
pod-code(@contents),
89
));
90
}
91
- $pod.push: pod-block("Source code: ",
92
- pod-link($file.basename, "https://github.com/perl6/perl6-examples/blob/master/categories/$category/" ~ $file.basename),
93
- );
+ $pod.push: source-reference($file, $category);
94
my $html-file = $file.subst(/\.p(l|6)/, ".html");
95
spurt "html/$html-file", p2h($pod);
96
97
98
99
+sub source-reference($file, $category) {
+ pod-block("Source code: ",
100
+ pod-link($file.basename,
101
+ "https://github.com/perl6/perl6-examples/blob/master/categories/$category/" ~ $file.basename),
102
+ );
103
+}
104
+
105
sub p2h($pod) {
106
pod2html $pod,
107
:url(&url),
0 commit comments