package Bookmarks::V::TT; use strict; use base 'Catalyst::View::TT'; sub process { my ( $self, $c ) = @_; my $ret=$self->NEXT::process($c); if ($ret==1 and $c->res->content_type =~ m{text/html}) { my $ct=$c->res->content_type; $ct=~s{text/html}{application/xhtml+xml}; $c->res->content_type($ct); } return $ret; } =head1 NAME Bookmarks::V::TT - TT View Component =head1 SYNOPSIS See L =head1 DESCRIPTION TT View Component. =head1 AUTHOR A clever guy =head1 LICENSE This library is free software . You can redistribute it and/or modify it under the same terms as perl itself. =cut 1;