X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-View-Component-SubInclude.git;a=blobdiff_plain;f=t%2Flib%2FESITest%2FView%2FTTWithHTTP.pm;fp=t%2Flib%2FESITest%2FView%2FTTWithHTTP.pm;h=17f9b2f88418ade122dcb324a22a1d51c0e8fb9c;hp=0000000000000000000000000000000000000000;hb=7b1b8afddeb5ad9dd89dd782bb43f2093992f5e7;hpb=b99299baac9c57b106a8fb02795f216088497f04 diff --git a/t/lib/ESITest/View/TTWithHTTP.pm b/t/lib/ESITest/View/TTWithHTTP.pm new file mode 100644 index 0000000..17f9b2f --- /dev/null +++ b/t/lib/ESITest/View/TTWithHTTP.pm @@ -0,0 +1,22 @@ +package ESITest::View::TTWithHTTP; +use Moose; + +extends 'Catalyst::View::TT'; +with 'Catalyst::View::Component::SubInclude'; + +__PACKAGE__->config( + TEMPLATE_EXTENSION => '.tt', + subinclude_plugin => 'HTTP::GET', + subinclude => { + 'HTTP::GET' => { + class => 'HTTP', + http_method => 'GET', + uri_map => { + '/cpan/' => 'http://search.cpan.org/~', + '/github/' => 'http://github.com/', + }, + }, + }, +); + +1;