Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Document routines in Pod::Htmlify
  • Loading branch information
Paul Cochrane committed May 4, 2015
1 parent a4f2932 commit 086dcee
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/Pod/Htmlify.pm6
Expand Up @@ -2,6 +2,7 @@ module Pod::Htmlify;

use URI::Escape;

#| Escape special characters in URLs if necessary
sub url-munge($_) is export {
return $_ if m{^ <[a..z]>+ '://'};
return "/type/{uri_escape $_}" if m/^<[A..Z]>/;
Expand All @@ -13,6 +14,7 @@ sub url-munge($_) is export {
return $_;
}

#| Return the footer HTML for each page
sub footer-html($pod-path) is export {
my $footer = slurp 'template/footer.html';
$footer.subst-mutate(/DATETIME/, ~DateTime.now);
Expand Down

0 comments on commit 086dcee

Please sign in to comment.