ViewのconfigもYAML化
[Catalyst]
[YAML]
便利かは微妙。
[View](lib/MyApp/View/TT.pm)の以下削除
__PACKAGE__->config({
CATALYST_VAR => 'Catalyst',
INCLUDE_PATH => [
MyApp->path_to( 'root', 'src' ),
MyApp->path_to( 'root', 'lib' )
],
PRE_PROCESS => 'config/main',
WRAPPER => 'site/wrapper',
ERROR => 'error.tt2',
TIMER => 0
});
[myapp.yml]に以下追加
View::TT:
CATALYST_VAR: Catalyst
INCLUDE_PATH:
- /home/path/MyApp/root/src
- /home/path/MyApp/root/lib
PRE_PROCESS: config/main
WRAPPER: site/wrapper
ERROR: error.tt2
TIMER: 0