Bjørn-Olav Strand
and 1 contributors

NAME

Catalyst::View::Component::ESI - Include ESI in your templates

VERSION

Version 0.02

SYNOPSIS

  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/"/>

DESCRIPTION

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.

Configuration file example:

  <View::TT>
    <LWP_OPTIONS>
      option1 value
    </LWP_OPTIONS>
        pass_cookies 1
  </View::TT>

process

Change esi-tags, to become the content of that page.

SEE ALSO

Catalyst

AUTHOR

Bjørn-Olav Strand <bo@startsiden.no>

LICENSE

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.