--- trunk/lib/Frey/Web.pm 2008/11/18 12:02:57 407 +++ trunk/lib/Frey/Web.pm 2008/11/18 16:54:10 418 @@ -10,6 +10,9 @@ use Carp qw/confess/; use File::Slurp; +use Frey::Bookmarklet; +use Frey::ClassBrowser; + has 'head' => ( is => 'rw', isa => 'ArrayRef[Str]', @@ -21,8 +24,8 @@ isa => 'ArrayRef[HashRef[Str]]', lazy => 1, default => sub { [ - { 'Bookmarklets' => Frey::Bookmarklet->markup }, - { 'ClassBrowser' => Frey::ClassBrowser->markup }, + { 'Bookmarklets' => Frey::Bookmarklet->new->markup }, + { 'ClassBrowser' => Frey::ClassBrowser->new->markup }, ] }, ); @@ -32,6 +35,16 @@ default => '/', ); +has 'title' => ( + is => 'rw', + isa => 'Str', + lazy => 1, + default => sub { + my ($self) = @_; + ref($self); + }, +); + =head2 inline_smaller_than Inline JavaScript and CSS smaller than this size into page reducing @@ -115,9 +128,6 @@ =cut -use Frey::Bookmarklet; -use Frey::ClassBrowser; - sub page { my $self = shift; my $a = {@_}; @@ -144,11 +154,11 @@ my $html = join("\n", qq|
|, $self->_head_html, - '