bless { nr => 0, cb => $cb, ctx => $ctx }, $class;
}
+sub response {
+ my ($class, $ctx, $code, $cb) = @_;
+ [ $code, [ 'Content-Type', 'text/html; charset=UTF-8' ],
+ $class->new($ctx, $cb) ]
+}
+
sub _html_top ($) {
my ($self) = @_;
my $ctx = $self->{ctx};
}
# XXX gross, for SearchView.pm
my $extra = $ctx->{-extra_form_html} || '';
- $top = qq{<form\naction="$upfx"><pre>$top} .
+ my $action = $upfx eq '' ? './' : $upfx;
+ $top = qq{<form\naction="$action"><pre>$top} .
qq{ <input\nname=q\ntype=text$q_val/>} .
$extra .
qq{<input\ntype=submit\nvalue=search />} .