--- trunk/lib/Frey/Web.pm 2009/01/07 17:50:03 957 +++ trunk/lib/Frey/Web.pm 2009/01/10 18:53:15 986 @@ -3,7 +3,6 @@ with 'Frey::Session'; -#use Continuity::Widget::DomNode; use Data::Dump qw/dump/; use Carp qw/confess cluck carp/; use File::Slurp; @@ -83,6 +82,7 @@ sub html_escape { my ( $self, $html ) = @_; + return '' unless defined $html; $html =~ s/($escape_re)/$escape{$1}/g; return $html; } @@ -245,9 +245,9 @@ our $reload_counter = 0; -=head2 page +=head2 html_page - $self->page( + $self->html_page( title => 'page title', head => '', body => 'Page Body', @@ -260,7 +260,7 @@ our $icon_html; -sub page { +sub html_page { my $self = shift; my $a = {@_}; @@ -320,6 +320,12 @@ # $title =~ s{(\w)\w+::}{$1:}g; # XXX compress names of classes + $self->add_css(qq| + body { + padding-bottom: 3em; /* don't overlap status line */ + } + |); + my $html = join("\n", qq||, $self->_head_html,