in reply to Display Pod in your web browser
How about just wrapping it in a CGI? This works OK on my development box, where I'm the only user (most of the time).
Yeah, it's slow, but it's convenient. Also, it'd be nice to able to select a directory for the cache files in pod2html. I didn't see a way to do that -- did I miss it?#! /usr/bin/perl -w use strict; use CGI qw(:standard); use CGI::Carp qw(fatalsToBrowser); use Pod::Html; print header('text/html'), start_html('POD browser'), start_form, p('POD: ', textfield('pod'), submit, ), end_form, hr; if (param()) { chdir '/tmp'; # write cache files in /tmp my $pod = param('pod'); my $file = qx(perldoc -l $pod); pod2html $file; } print end_html;
|
|---|