--- trunk/lib/Frey/Web.pm 2008/11/20 13:57:38 477
+++ trunk/lib/Frey/Web.pm 2008/11/20 15:23:13 482
@@ -188,10 +188,25 @@
$body = '';
}
+ my $warn_colors = {
+ '#' => '#444',
+ '##' => '#888',
+ };
+
$status_line
- .= qq||
+ .= qq||
if $self->warnings;
my ($exit,$description) = ('exit','stop server');
@@ -229,6 +244,31 @@
return $html;
}
+=head2 editor
+
+Create HTML editor link with optional line and title
+
+ my $html = $self->editor( $class, $line, $title );
+
+=cut
+
+sub editor {
+ my ( $self, $class, $line, $title ) = @_;
+ confess "need class" unless $class;
+ $line ||= 1;
+ qq|$class|;
+}
+
+=head2 editor_links
+
+Create HTML links to editor for perl error message
+
+ my $html = $self->editor_links( $error )
+
+=cut
+
sub editor_links {
my ( $self, $error ) = @_;