line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Flower::Interface; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
12970
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
29
|
|
4
|
1
|
|
|
1
|
|
4
|
use warnings; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
31
|
|
5
|
|
|
|
|
|
|
|
6
|
1
|
|
|
1
|
|
5
|
use Mojo::Base 'Mojolicious::Controller'; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
6
|
|
7
|
1
|
|
|
1
|
|
176
|
use Mojolicious::Plugin::SimpleSession; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
8
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
# This action will render a template |
10
|
|
|
|
|
|
|
sub root { |
11
|
1
|
|
|
1
|
0
|
235
|
my $self = shift; |
12
|
1
|
|
|
|
|
15
|
my $config = $self->config(); |
13
|
|
|
|
|
|
|
|
14
|
1
|
|
|
|
|
68
|
my $count = $self->stash->{session}->{count}; |
15
|
1
|
|
|
|
|
9
|
$count++; |
16
|
|
|
|
|
|
|
|
17
|
1
|
|
|
|
|
33
|
$self->stash->{session}->{count} = $count; |
18
|
|
|
|
|
|
|
|
19
|
1
|
|
|
|
|
11
|
$self->stash->{nodes} = $config->{nodes}; |
20
|
|
|
|
|
|
|
|
21
|
1
|
|
|
|
|
14
|
$self->render(); |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
1; |