Fayland 林

NAME

Catalyst::Action::Fixup::XHTML - Catalyst action which serves application/xhtml+xml content if the browser accepts it.

SYNOPSIS

    sub end : ActionClass('Fixup::XHTML') {}

DESCRIPTION

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.

RenderView

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');
    }

AUTHOR

Fayland Lam, <fayland at gmail.com>

ACKNOWLEDGEMENTS

Tomas Doran for the great Catalyst::View::TT::XHTML

COPYRIGHT & LICENSE

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.