Add HTTP support
[catagits/Catalyst-View-Component-SubInclude.git] / t / lib / ESITest / View / TTWithHTTP.pm
CommitLineData
7b1b8afd 1package ESITest::View::TTWithHTTP;
2use Moose;
3
4extends 'Catalyst::View::TT';
5with '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
221;