use strict;
use warnings;
require PublicInbox::RepoBrowseQuery;
-require PublicInbox::Hval;
+use PublicInbox::Hval;
sub new { bless {}, shift }
(defined($ct) && $ct =~ m!\A(?:image|audio|video)/!) ? $ct : undef;
}
+# starts an HTML page for Repobrowse in a consistent way
+sub html_start {
+ my ($self, $req, $title_html) = @_;
+ my $desc = $req->{repo_info}->{desc_html};
+
+ "<html><head><title>$title_html</title>" .
+ PublicInbox::Hval::STYLE .
+ "</head><body><pre><b>$desc</b>";
+}
+
1;