Skip to content

Instantly share code, notes, and snippets.

@omega
Created May 21, 2009 07:09
Show Gist options
  • Save omega/115325 to your computer and use it in GitHub Desktop.
Save omega/115325 to your computer and use it in GitHub Desktop.
package Catalyst::View::Component::ESI;
use Moose::Role;
requires 'process';
around 'process' => sub {
my $orig = shift;
my $content = $orig->(@_);
## fix $content
return $content;
}
1;
package Myapp::View::Something;
use Moose;
with 'Catalyst::View::Component::ESI';
sub process {
return 'my template content';
}
1;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment