]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/WwwStream.pm
viewvcs: start improving display of git commits
[public-inbox.git] / lib / PublicInbox / WwwStream.pm
index 0416db0b474200dc9f534d4797276159d0e15a80..ab006c40509dc336a4c6bfa2a12fa5136a0131fd 100644 (file)
@@ -201,4 +201,13 @@ sub aresponse {
        $ctx->psgi_response($code, $res_hdr);
 }
 
+sub html_init {
+       my ($ctx) = @_;
+       $ctx->{base_url} = base_url($ctx);
+       my $h = $ctx->{-res_hdr} = ['Content-Type', 'text/html; charset=UTF-8'];
+       $ctx->{gz} = PublicInbox::GzipFilter::gz_or_noop($h, $ctx->{env});
+       bless $ctx, __PACKAGE__;
+       $ctx->zmore(html_top($ctx));
+}
+
 1;