Skip to content

Commit 548f340

Browse files
committed
support explicit .html requests
1 parent 0251281 commit 548f340

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

util/site

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,12 @@ my $application = route {
2424
for <language programs type> -> $section {
2525
get -> $section, $path {
2626
my $file = "doc/{tc $section}/{$path}";
27-
if $path.ends-with('.pod6') {
27+
if $file.ends-with('.pod6') {
2828
content 'text/plain', $file.IO.slurp
2929
}
30+
if $file.ends-with('.html') {
31+
$file .= chop: 5
32+
}
3033
content 'text/html', pod-to-html($file ~ '.pod6');
3134
}
3235
}

0 commit comments

Comments
 (0)