12 |
default => sub { [ 'static/frey.css' ] }, |
default => sub { [ 'static/frey.css' ] }, |
13 |
); |
); |
14 |
|
|
15 |
|
=head2 inline_smaller_than |
16 |
|
|
17 |
|
Inline JavaScript and CSS smaller than this size into page reducing |
18 |
|
round-trips to server. |
19 |
|
|
20 |
|
=cut |
21 |
|
|
22 |
has 'inline_smaller_than' => ( |
has 'inline_smaller_than' => ( |
23 |
is => 'rw', |
is => 'rw', |
24 |
isa => 'Int', |
isa => 'Int', |
95 |
|
|
96 |
=cut |
=cut |
97 |
|
|
98 |
|
use Frey::Bookmarklet; |
99 |
|
|
100 |
sub page { |
sub page { |
101 |
my $self = shift; |
my $self = shift; |
102 |
my $a = {@_}; |
my $a = {@_}; |
109 |
. ( $a->{head} || '' ) |
. ( $a->{head} || '' ) |
110 |
. '</head><body>' |
. '</head><body>' |
111 |
. ( $a->{body} || '<!-- no body -->' ) |
. ( $a->{body} || '<!-- no body -->' ) |
112 |
. qq|<div class="frey-status-line"> <a href="/">Frey</a> $Frey::VERSION <a href="?reload=$reload_counter">reload</a> </div>| |
. qq|<div class="frey-status-line"> |
113 |
|
<a href="/">Frey</a> $Frey::VERSION |
114 |
|
<a href="?reload=$reload_counter">reload</a> |
115 |
|
<span class="frey-popup">Bookmarklets<span>| . Frey::Bookmarklet->markup . qq|</span>| |
116 |
. '</body></html>' |
. '</body></html>' |
117 |
; |
; |
118 |
|
|