/[Frey]/trunk/lib/Frey/Web.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/lib/Frey/Web.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 417 by dpavlin, Tue Nov 18 16:39:13 2008 UTC revision 418 by dpavlin, Tue Nov 18 16:54:10 2008 UTC
# Line 35  has 'request_url' => ( Line 35  has 'request_url' => (
35          default => '/',          default => '/',
36  );  );
37    
38    has 'title' => (
39            is => 'rw',
40            isa => 'Str',
41            lazy => 1,
42            default => sub {
43                    my ($self) = @_;
44                    ref($self);
45            },
46    );
47    
48  =head2 inline_smaller_than  =head2 inline_smaller_than
49    
50  Inline JavaScript and CSS smaller than this size into page reducing  Inline JavaScript and CSS smaller than this size into page reducing
# Line 144  sub page { Line 154  sub page {
154          my $html = join("\n",          my $html = join("\n",
155                  qq|<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"><html><head>|,                  qq|<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"><html><head>|,
156                  $self->_head_html,                  $self->_head_html,
157                  '<title>' . ( $a->{title} || ref($self) ) . '</title>',                  '<title>' . ( $self->title || $a->{title} || ref($self) ) . '</title>',
158                  '<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">',                  '<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">',
159                  ( $a->{head} || '' ),                  ( $a->{head} || '' ),
160                  '</head><body>',                  '</head><body>',
161                  ( $a->{body} || '<!-- no body -->' ),                  ( $a->{body} || $self->markup || '<!-- no body -->' ),
162                  qq|                  qq|
163                  <div class="frey-status-line">                  <div class="frey-status-line">
164                          <a href="/">Frey</a> $Frey::VERSION                          <a href="/">Frey</a> $Frey::VERSION

Legend:
Removed from v.417  
changed lines
  Added in v.418

  ViewVC Help
Powered by ViewVC 1.1.26