X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=README;h=0cfd4b741bf905d4432de3f7efc9153a8ed9b54d;hb=HEAD;hp=463310465dcffc3009a8ea2f77677b2a8e8bfad0;hpb=4b86766c11abee4b0adb47beb8841399d2c12b0f;p=catagits%2FCatalyst-View-Component-SubInclude.git diff --git a/README b/README index 4633104..0cfd4b7 100644 --- a/README +++ b/README @@ -3,7 +3,7 @@ NAME views VERSION - Version 0.09 + Version 0.11 SYNOPSIS package MyApp::View::TT; @@ -30,11 +30,7 @@ DESCRIPTION It's built in an extensible way so that you're free to use sub-requests, Varnish ESI () 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 - "http://example.com/myapp" then you will need to use - Catalyst::Plugin::SubRequest directly, and not this component. + other sub-include plugin you might want to implement. STASH FUNCTIONS This component does its magic by exporting a "subinclude" coderef entry @@ -60,11 +56,25 @@ SUBINCLUDE PLUGINS the view's configuration options (either in the config file or in the view module itself). - Configuration file example: - - - subinclude_plugin ESI - + __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/', + }, + }, + }, + ); + + You can change each plugins' configuration through the keys in the + 'subinclude' config key (example above) "set_subinclude_plugin( $plugin )" This method changes the current active subinclude plugin in runtime. It