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