X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FView%2FComponent%2FSubInclude.pm;h=f77345fdf61d893940aff8bff057986100440dfb;hb=788d0e725632db77310350d0f3e790e450936411;hp=f63a05850a0994ec021f295006dd19db18c5e32d;hpb=4b86766c11abee4b0adb47beb8841399d2c12b0f;p=catagits%2FCatalyst-View-Component-SubInclude.git diff --git a/lib/Catalyst/View/Component/SubInclude.pm b/lib/Catalyst/View/Component/SubInclude.pm index f63a058..f77345f 100644 --- a/lib/Catalyst/View/Component/SubInclude.pm +++ b/lib/Catalyst/View/Component/SubInclude.pm @@ -15,11 +15,11 @@ Catalyst::View::Component::SubInclude - Use subincludes in your Catalyst views =head1 VERSION -Version 0.09 +Version 0.11 =cut -our $VERSION = '0.10'; +our $VERSION = '0.11'; $VERSION = eval $VERSION; =head1 SYNOPSIS @@ -49,11 +49,7 @@ in your page. It's built in an extensible way so that you're free to use sub-requests, Varnish ESI (L) or any other -sub-include plugin you might want to implement. An LWP plugin seems useful and -might be developed in the future. If you need to address a resource by it's -public path (i.e. the path part trailing C then you -will need to use L directly, and not this -component. +sub-include plugin you might want to implement. =head1 STASH FUNCTIONS @@ -76,20 +72,36 @@ calls this function using the default plugin as the first parameter. =head1 SUBINCLUDE PLUGINS -The module comes with two subinclude plugins: -L, -L and -L. +The module comes with several subinclude plugins: +L, +L, +L, +L and +L. 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