| 1 | package Clustericious::HelloWorld; | ||
| 2 | |||
| 3 | 17 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 17 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 17 | ▶ | use Mojo::Base 'Clustericious::App'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | 17 | ▶ | use Clustericious::RouteBuilder qw/Clustericious::HelloWorld/; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | |||
| 8 | # ABSTRACT: Clustericious hello world application | ||
| 9 | 17 | our $VERSION = '1.29'; # VERSION | |
| 10 | |||
| 11 | |||
| 12 | 0 | ▶ | get '/' => sub { shift->render(text => 'Hello, world') } => 'index'; |
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||
| 13 | |||
| 14 | 0 | ▶ | get '/modules' => sub { |
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||
| 15 | 0 | my %copy = %INC; | |
| 16 | 0 | shift->stash->{autodata} = \%copy; | |
| 17 | 17 | } => 'modules'; | |
| 18 | |||
| 19 | 17 | 1; | |
| 20 | |||
| 21 | __END__ | ||