| 1 | package EWS::Calendar::Viewer::View::TT; | ||
| 2 | BEGIN { | ||
| 3 | $EWS::Calendar::Viewer::View::TT::VERSION = '1.111982'; | ||
| 4 | } | ||
| 5 | |||
| 6 | use strict; | ||
| 7 | use warnings FATAL => 'all'; | ||
| 8 | |||
| 9 | use base qw( Catalyst::View::TT ); | ||
| 10 | use File::ShareDir (); | ||
| 11 | use Try::Tiny; | ||
| 12 | |||
| 13 | __PACKAGE__->config({ | ||
| 14 | INCLUDE_PATH => [ | ||
| 15 | try { | ||
| 16 | File::ShareDir::dist_dir('EWS-Calendar-Viewer') | ||
| 17 | } catch { | ||
| 18 | './share' | ||
| 19 | } | ||
| 20 | ], | ||
| 21 | WRAPPER => 'wrapper.tt' | ||
| 22 | }); | ||
| 23 | |||
| 24 | 1; |