Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Added a simple body subroutine to process html passed to the module.
  • Loading branch information
ayardley committed Jan 26, 2012
1 parent 1af5323 commit 659ec6f
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions lib/Parrot/Docs/HTMLPage.pm
Expand Up @@ -72,6 +72,21 @@ sub header {
HEADER
}

=item C<body(@html_tags)>
=cut

sub body {
my $self = shift;

my $body;
foreach(@_) {
$body .= $_;
}

return $body;
}

=item C<footer($navigation, $resources)>
Returns the page footer.
Expand Down

0 comments on commit 659ec6f

Please sign in to comment.