| 1 | # -*- mode: perl; coding: utf-8 -*- | ||
| 2 | 6 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | 6 | ▶ | use warnings qw(FATAL all NONFATAL misc); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 6 | ▶ | use FindBin; BEGIN { local @_ = "$FindBin::Bin/.."; do "$FindBin::Bin/../t_lib.pl" } |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 6 | my $app_root = ::dirname(::untaint_any(__FILE__)); | |
| 7 | |||
| 8 | 6 | ▶ | use mro 'c3'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | 6 | ▶ | use YATT::Lite::WebMVC0::SiteApp -as_base; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | |||
| 11 | { | ||
| 12 | 6 | my MY $dispatcher = do { | |
| 13 | 6 | my @args = (app_ns => 'MyYATT' | |
| 14 | , app_root => $app_root | ||
| 15 | , doc_root => $app_root); | ||
| 16 | 6 | MY->new(@args); | |
| 17 | }; | ||
| 18 | |||
| 19 | 6 | return $dispatcher->to_app; | |
| 20 | } | ||