Add HTTP support
[catagits/Catalyst-View-Component-SubInclude.git] / t / lib / ESITest / View / TTWithHTTP.pm
1 package ESITest::View::TTWithHTTP;
2 use Moose;
3
4 extends 'Catalyst::View::TT';
5 with 'Catalyst::View::Component::SubInclude';
6
7 __PACKAGE__->config(
8     TEMPLATE_EXTENSION => '.tt',
9     subinclude_plugin => 'HTTP::GET',
10     subinclude => {
11         'HTTP::GET' => {
12             class => 'HTTP',
13             http_method => 'GET',
14             uri_map => {
15                 '/cpan/' => 'http://search.cpan.org/~',
16                 '/github/' => 'http://github.com/',
17             },
18         },
19     },
20 );
21
22 1;