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 3dfe034 commit f650e84Copy full SHA for f650e84
lib/Pod/Htmlify.pm6
@@ -62,14 +62,8 @@ class Website is export {
62
method collect-example-metadata($file, $category-key) {
63
say "Collecting metadata from $file";
64
my $perl-pod = qqx{perl6-m -Ilib --doc=Perl $file};
65
- my $pod = EVAL $perl-pod;
66
my $file-basename = $file.basename;
67
- if !$pod {
68
- my @contents = $file.lines.join("\n");
69
- $pod = Array.new(pod-with-title($file-basename,
70
- pod-code(@contents),
71
- ));
72
- }
+ my $pod = (EVAL $perl-pod) || [pod-with-title($file-basename)];
73
my $example-title = pod-title-contents($pod, $file-basename);
74
my $author = pod-author-contents($pod, $file-basename);
75
my $html-file = $file-basename.subst(/\.p[l||6]$/, ".html");
0 commit comments