diff options
Diffstat (limited to 'lib/Bookmarks/V/TT.pm')
-rw-r--r-- | lib/Bookmarks/V/TT.pm | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/Bookmarks/V/TT.pm b/lib/Bookmarks/V/TT.pm index d2063b6..f2f8e7d 100644 --- a/lib/Bookmarks/V/TT.pm +++ b/lib/Bookmarks/V/TT.pm @@ -3,6 +3,18 @@ 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 |