Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add table headers to example index files
  • Loading branch information
Paul Cochrane committed Mar 11, 2015
1 parent 868d277 commit 85ac1b9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion htmlify.pl
Expand Up @@ -56,9 +56,10 @@
my @files = files-in-category($category);
my @filenames = @files.map: {.basename};
my @pod-links = @filenames.map: {pod-link($_, "categories/$category/$_")};
my @headers = qw{File Title Author};
spurt "html/$category.html", p2h(
pod-with-title($title,
pod-table(@pod-links),
pod-table(@pod-links, headers => @headers),
),
);
}
Expand Down
4 changes: 2 additions & 2 deletions lib/Pod/Convenience.pm6
Expand Up @@ -93,9 +93,9 @@ sub pod-heading($name, :$level = 1) is export {
);
}

sub pod-table(@contents) is export {
sub pod-table(@contents, :@headers) is export {
Pod::Block::Table.new(
:@contents
:@contents, :@headers
)
}

Expand Down

0 comments on commit 85ac1b9

Please sign in to comment.