diff options
author | dakkar <dakkar@luxion> | 2005-11-08 13:15:46 +0000 |
---|---|---|
committer | dakkar <dakkar@luxion> | 2005-11-08 13:15:46 +0000 |
commit | 78ba357af675bfc0ac7c6bfc23353565d94fd786 (patch) | |
tree | 09d863884b12fa0d7d9e7c2b0e835155e2d23fcc /lib/Bookmarks/V | |
parent | form di aggiunta bookmark funzionante (diff) | |
download | Bookmarks-78ba357af675bfc0ac7c6bfc23353565d94fd786.tar.gz Bookmarks-78ba357af675bfc0ac7c6bfc23353565d94fd786.tar.bz2 Bookmarks-78ba357af675bfc0ac7c6bfc23353565d94fd786.zip |
ora il BookmarksManager gestisce per bene i tag multipli, e i template sono fatti meglio
Diffstat (limited to 'lib/Bookmarks/V')
-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 |