1Catalyst::View::ComponeUnste:r:SCuobnItnrcilbCuuadtteea:dl:ySPsSetIr:(l:3V)Dioecwu:m:eCnotmaptoinoennt::SubInclude::SSI(3)
2
3
4

NAME

6       Catalyst::View::Component::SubInclude::SSI - Server Side Includes (SSI)
7       plugin for C::V::Component::SubInclude
8

VERSION

10       Version 0.10
11

SYNOPSIS

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 => 'SSI' );
22
23       Then, somewhere in your templates:
24
25         [% subinclude('/my/widget') %]
26

DESCRIPTION

28       "Catalyst::View::Component::SubInclude::SSI" renders "subinclude" calls
29       as Server Side Includes (SSI) include directives. This is a feature
30       implemented by Apache (<http://httpd.apache.org/>), nginx
31       (<http://wiki.nginx.org/Main>) and many other web servers which allows
32       cache-efficient uses of includes.
33

METHODS

35   "generate_subinclude( $c, $path, @args )"
36       Note that $path should be the private action path - translation to the
37       public path is handled internally. After translation, this will roughly
38       translate to the following code:
39
40         my $url = $c->uri_for( $translated_path, @args )->path_query;
41         return '<!--#include virtual="$url" -->';
42
43       Notice that the stash will always be empty. This behavior could be
44       configurable in the future through an additional switch - for now, this
45       behavior guarantees a common interface for plugins.
46

SEE ALSO

48       Catalyst::View::Component::SubInclude,
49

AUTHOR

51       Vladimir Timofeev, "<vovkasm at gmail.com>"
52
54       This program is free software; you can redistribute it and/or modify it
55       under the same terms as Perl itself.
56
57
58
59perl v5.30.0                     C2a0t1a9l-y0s7t-:2:6View::Component::SubInclude::SSI(3)
Impressum