Catalyst::View::Component::ESI - Include ESI in your templates
Version 0.02
package MyApp::View::TT; use Moose; extends 'Catalyst::View::TT'; with 'Catalyst::View::Component::ESI'; __PACKAGE__->config( LWP_OPTIONS => { option1 => 1} );
Then, somewhere in your templates:
<esi:include src="http://www.google.com/"/>
Catalyst::View::Component::ESI allows you to include external content in your templates. It's implemented as a Moose::Role, so using Moose in your view is required.
Catalyst::View::Component::ESI
Configuration file example:
<View::TT> <LWP_OPTIONS> option1 value </LWP_OPTIONS> pass_cookies 1 </View::TT>
Change esi-tags, to become the content of that page.
Catalyst
Bjørn-Olav Strand <bo@startsiden.no>
Copyright 2009 by ABC Startsiden AS, Bjørn-Olav Strand <bo@startsiden.no>.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Catalyst::View::Component::ESI, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Catalyst::View::Component::ESI
CPAN shell
perl -MCPAN -e shell install Catalyst::View::Component::ESI
For more information on module installation, please visit the detailed CPAN module installation guide.