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