107 |
my $html = qq|<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"><html><head>| |
my $html = qq|<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"><html><head>| |
108 |
. $self->_head_html |
. $self->_head_html |
109 |
. '<title>' . ( $a->{title} || ref($self) ) . '</title>' |
. '<title>' . ( $a->{title} || ref($self) ) . '</title>' |
110 |
|
. '<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">' |
111 |
. ( $a->{head} || '' ) |
. ( $a->{head} || '' ) |
112 |
. '</head><body>' |
. '</head><body>' |
113 |
. ( $a->{body} || '<!-- no body -->' ) |
. ( $a->{body} || '<!-- no body -->' ) |
129 |
sub error { |
sub error { |
130 |
my ( $self, $error ) = @_; |
my ( $self, $error ) = @_; |
131 |
warn $error; |
warn $error; |
132 |
$error =~ s{\s+(\S+)\s+line\s+(\d+)}{ <a href="/editor$1+$2" target="editor">$1</a> line $2}gsm; |
$error =~ s{at\s+(\S+)\s+line\s+(\d+)}{ <a href="/editor$1+$2" target="editor">$1</a> line $2}gsm; |
133 |
return qq|<pre class="frey-error">$error</pre>|; |
return qq|<pre class="frey-error">$error</pre>|; |
134 |
} |
} |
135 |
|
|