Skip to content

Commit

Permalink
avoid alternative constructors
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed May 9, 2015
1 parent 0ed66c5 commit a885ddc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/Mojolicious/Plugin/PODRenderer.pm
Expand Up @@ -2,6 +2,7 @@ package Mojolicious::Plugin::PODRenderer;
use Mojo::Base 'Mojolicious::Plugin';

use Mojo::Asset::File;
use Mojo::ByteStream;
use Mojo::DOM;
use Mojo::URL;
use Mojo::Util 'slurp';
Expand All @@ -24,7 +25,8 @@ sub register {
}
);

$app->helper(pod_to_html => sub { shift; b(_pod_to_html(@_)) });
$app->helper(
pod_to_html => sub { shift; Mojo::ByteStream->new(_pod_to_html(@_)) });

# Perldoc browser
return undef if $conf->{no_perldoc};
Expand Down

0 comments on commit a885ddc

Please sign in to comment.