App-podtohtml
view release on metacpan or search on metacpan
lib/App/podtohtml.pm view on Meta::CPAN
if ($args{list_templates}) {
return [200, "OK", _list_templates()];
}
my $infile = $args{infile} // '-';
my $outfile = $args{outfile} // '-';
my $browser = $args{browser};
unless ($infile eq '-' or -f $infile) {
return [404, "No such file '$infile'"];
}
my $tempdir = File::Temp::tempdir();
Pod::Html::pod2html(
($infile eq '-' ? () : ("--infile=$infile")),
"--outfile=$tempdir/outfile.html",
"--cachedir=$tempdir",
);
( run in 1.832 second using v1.01-cache-2.11-cpan-39bf76dae61 )