1Catalyst::View::ComponeUnste:r:CSCauotbnaItlnrycislbtuu:dt:eeV:di:eSPwue:br:RlCeoqDmuopecosuntme(en3nt)t:a:tSiuobnInclude::SubRequest(3)
2
3
4

NAME

6       Catalyst::View::Component::SubInclude::SubRequest - Sub-requests plugin
7       for C::V::Component::SubInclude
8

VERSION

10       Version 0.07_03
11

SYNOPSIS

13       In your application class:
14
15         package MyApp;
16
17         use Catalyst qw/
18           ConfigLoader
19           Static::Simple
20           ...
21           SubRequest
22         /;
23
24       In your view class:
25
26         package MyApp::View::TT;
27         use Moose;
28
29         extends 'Catalyst::View::TT';
30         with 'Catalyst::View::Component::SubInclude';
31
32         __PACKAGE__->config( subinclude_plugin => 'SubRequest' );
33
34       Then, somewhere in your templates:
35
36         [% subinclude('/my/widget') %]
37

DESCRIPTION

39       "Catalyst::View::Component::SubInclude::SubRequest" uses Catalyst sub-
40       requests to render the subinclude contents.
41
42       It requires Catalyst::Plugin::SubRequest.
43

METHODS

45   "generate_subinclude( $c, $path, @args )"
46       This will make a sub-request call to the action specified by $path.
47       Note that $path should be the private action path - translation to the
48       public path is handled internally.
49
50       So, after path translation, the call will be (roughly) equivalent to:
51
52         $c->sub_request( $translated_path, {}, @args );
53
54       Notice that the stash will always be empty. This behavior could be
55       configurable in the future through an additional switch - for now, this
56       behavior guarantees a common interface for all plugins.
57

SEE ALSO

59       Catalyst::View::Component::SubInclude, Catalyst::Plugin::SubRequest
60

AUTHOR

62       Nilson Santos Figueiredo Junior, "<nilsonsfj at cpan.org>"
63

SPONSORSHIP

65       Development sponsored by Ionzero LLC <http://www.ionzero.com/>.
66
68       Copyright (C) 2009 Nilson Santos Figueiredo Junior.
69
70       Copyright (C) 2009 Ionzero LLC.
71
72       This program is free software; you can redistribute it and/or modify it
73       under the same terms as Perl itself.
74
75
76
77perl v5.38.0              Catalyst2:0:2V3i-e0w7:-:2C0omponent::SubInclude::SubRequest(3)
Impressum