package
MyApp2::Controller;
sub
blessed {
ref
shift
}
# Access to modules
sub
test_module {
shift
->config(
'charset'
) }
sub
build
{
my
$self
=
shift
;
my
$r
=
$self
->routes;
$r
->add(
"/blessed"
,
"blessed"
);
$r
->add(
"/persistence"
,
"bar#test_persistence"
);
}
1;