Revision history for Perl extension Catalyst::Plugin::SubRequest
+0.12 2007-09-05
+ - Switch to Module::Install
+ - Fixed README (RT #16459)
+
0.11 2007-04-03 14:13:00
- $c->req->params restored after sub_request
+
0.10 2005-12-08 13:15:00
- Updated test suite to work with new catalyst.
+
0.09 2005-10-28 01:07:00
- localize body rather than output, which is an alias
+
0.08 2005-12-10 01:34:00
- patch to handle NEXT trouble.
+
0.07 2005-08-01 12:08:00
- reset path.
- allow passing params.
+
0.06 2005-06-08 20:27:00
- Flush params as well
- allow stuff to be passed to the stash
+
0.05 2005-03-19 20:27:00
- Added a log message in debug mode.
+
0.04 2005-03-19 20:27:00
- Updated forward to cat5 style
- Using Catalyst::Dispatch::dispatch instead of forward.
+
0.03 2005-03-19 20:27:00
- Fixed documentation.
+
0.02 2005-03-19 10:32:00
- Ooops, missed MANIFEST
+++ /dev/null
-Changes
-Makefile.PL
-MANIFEST This list of files
-META.yml
-README
-SubRequest.pm
-t/01use.t
-t/02subreq.t
-t/03pod.t
-t/04podcoverage.t
-t/lib/TestApp.pm
--- /dev/null
+# Avoid version control files.
+\bRCS\b
+\bCVS\b
+,v$
+\B\.svn\b
+
+# Avoid Makemaker generated and utility files.
+\bMakefile$
+\bblib
+\bMakeMaker-\d
+\bpm_to_blib$
+\bblibdirs$
+^MANIFEST\.SKIP$
+
+# Avoid Module::Build generated and utility files.
+\bBuild$
+\b_build
+
+# Avoid temp and backup files.
+~$
+\.tmp$
+\.old$
+\.bak$
+\#$
+\b\.#
+\.DS_Store$
+
+# No tarballs!
+\.gz$
+++ /dev/null
-# http://module-build.sourceforge.net/META-spec.html
-#XXXXXXX This is a prototype!!! It will change in the future!!! XXXXX#
-name: Catalyst-Plugin-SubRequest
-version: 0.09
-version_from: SubRequest.pm
-installdirs: site
-requires:
- Catalyst: 2.99
-
-distribution_type: module
-generated_by: ExtUtils::MakeMaker version 6.17
-use ExtUtils::MakeMaker;
-
-WriteMakefile(
- NAME => 'Catalyst::Plugin::SubRequest',
- AUTHOR => 'Marcus Ramberg <marcus@thefeed.no>',
- PREREQ_PM => {
- Catalyst => '5.00',
- },
- VERSION_FROM => 'SubRequest.pm'
-);
+use inc::Module::Install 0.67;
+
+name 'Catalyst-Plugin-SubRequest';
+all_from 'lib/Catalyst/Plugin/SubRequest.pm';
+
+requires 'Catalyst::Runtime';
+
+requires 'Test::More';
+
+auto_install;
+WriteAll;
NAME
- Catalyst::Plugin::Static - Serve static files with Catalyst
+ Catalyst::Plugin::SubRequest - Make subrequests to actions in Catalyst
SYNOPSIS
- use Catalyst 'Static';
+ use Catalyst 'SubRequest';
- $c->serve_static;
+ $c->subreq('/test/foo/bar', { template => 'magic.tt' });
+
+ $c->subreq( { path => '/test/foo/bar',
+ body => $body },
+ { template => 'magic.tt' });
DESCRIPTION
- Serve static files from config->{root}.
+ Make subrequests to actions in Catalyst. Uses the catalyst dispatcher,
+ so it will work like an external url call.
+
+METHODS
+ subreq [path as string or hash ref], [stash as hash ref], [parameters as
+ hash ref]
+ sub_request
+ Takes a full path to a path you'd like to dispatch to. If the path
+ is passed as a hash ref then it can include body, action, match and
+ path. Any additional parameters are put into the stash.
- METHODS
- serve_static
SEE ALSO
Catalyst.
AUTHOR
- Sebastian Riedel, "sri@cpan.org"
+ Marcus Ramberg, "mramberg@cpan.org"
+
+THANK YOU
+ SRI, for writing the awesome Catalyst framework
COPYRIGHT
This program is free software, you can redistribute it and/or modify it
use strict;
use Time::HiRes qw/tv_interval/;
-our $VERSION = '0.11';
+our $VERSION = '0.12';
=head1 NAME