1Catalyst::View::ComponeUnste:r:SCuobnItnrCcialbtuuadtleey:ds:tVP:ie:srVilite(Dw3o:)c:uCmoemnptoanteinotn::SubInclude::Visit(3)
2
3
4
6 Catalyst::View::Component::SubInclude::Visit - visit() plugin for
7 C::V::Component::SubInclude
8
10 Version 0.07_03
11
13 In your view class:
14
15 package MyApp::View::TT;
16 use Moose;
17
18 extends 'Catalyst::View::TT';
19 with 'Catalyst::View::Component::SubInclude';
20
21 __PACKAGE__->config( subinclude_plugin => 'Visit' );
22
23 Then, somewhere in your templates:
24
25 [% subinclude('/my/widget') %]
26
28 "Catalyst::View::Component::SubInclude::Visit" uses "$c->visit()" to
29 render subinclude contents.
30
31 This method is only supported when using Catalyst version 5.71000 or
32 newer.
33
34 WARNING: As of Catalyst version 5.71000, this plugin doesn't work for
35 chained actions with captured arguments. Apparently, "visit" doesn't
36 handle this type of actions yet.
37
39 "generate_subinclude( $c, $path, @args )"
40 This is (roughly) equivalent to the following call:
41
42 $c->visit( $path, @args );
43
44 But it will handle all the nasty details such as localizing the stash,
45 parameters and response body. This is necessary to keep behavior
46 consistent with the other plugins.
47
49 Catalyst::View::Component::SubInclude, Catalyst
50
52 Nilson Santos Figueiredo Junior, "<nilsonsfj at cpan.org>"
53
55 Development sponsored by Ionzero LLC <http://www.ionzero.com/>.
56
58 Copyright (C) 2009 Nilson Santos Figueiredo Junior.
59
60 Copyright (C) 2009 Ionzero LLC.
61
62 This program is free software; you can redistribute it and/or modify it
63 under the same terms as Perl itself.
64
65
66
67perl v5.32.0 Cat2a0l2y0s-t0:7:-V2i8ew::Component::SubInclude::Visit(3)