X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-View-Component-SubInclude.git;a=blobdiff_plain;f=lib%2FCatalyst%2FView%2FComponent%2FSubInclude.pm;fp=lib%2FCatalyst%2FView%2FComponent%2FSubInclude.pm;h=33c2b063e4e8606ae31b15cd24c775b2cf44b144;hp=6d04c87cb6b78d91cb89010510ee7ff1166d3df6;hb=4162256ab5c7c2446154a05e8c5dfdf1bd9a9a53;hpb=275ab645ed6531f108d7184c394498ee62aea68d diff --git a/lib/Catalyst/View/Component/SubInclude.pm b/lib/Catalyst/View/Component/SubInclude.pm index 6d04c87..33c2b06 100644 --- a/lib/Catalyst/View/Component/SubInclude.pm +++ b/lib/Catalyst/View/Component/SubInclude.pm @@ -81,11 +81,25 @@ By default, the C plugin will be used. This can be changed in the view's configuration options (either in the config file or in the view module itself). -Configuration file example: + __PACKAGE__->config( + subinclude_plugin => 'ESI', + subinclude => { + 'SubRequest' => { + keep_stash => 1, + }, + 'HTTP::POST' => { + class => 'HTTP', + http_method => 'POST', + ua_timeout => '10', + uri_map => { + '/foo/' => 'http://www.foo.com/', + }, + }, + }, + ); - - subinclude_plugin ESI - +You can change each plugins' configuration through the keys in the 'subinclude' +config key (example above) =head2 C