Catalyst::Action::Fixup::XHTML - Catalyst action which serves application/xhtml+xml content if the browser accepts it.
sub end : ActionClass('Fixup::XHTML') {}
A simple module to use Catalyst::View::ContentNegotiation::XHTML
It's an action because I think it can be used in other views like Mason.
Since Catalyst doesn't support two ActionClass attributes now, you need do follows to make them together.
sub render : ActionClass('RenderView') { } sub end : ActionClass('Fixup::XHTML') { my ( $self, $c ) = @_; $c->forward('render'); }
Fayland Lam, <fayland at gmail.com>
<fayland at gmail.com>
Tomas Doran for the great Catalyst::View::TT::XHTML
Copyright 2008 Fayland Lam, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Catalyst::Action::Fixup::XHTML, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Catalyst::Action::Fixup::XHTML
CPAN shell
perl -MCPAN -e shell install Catalyst::Action::Fixup::XHTML
For more information on module installation, please visit the detailed CPAN module installation guide.