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


Catalyst-Action-Fixup-XHTML documentation  | view source Contained in the Catalyst-Action-Fixup-XHTML distribution.

Index


NAME

Top

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

SYNOPSIS

Top

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

DESCRIPTION

Top

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

Top

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

Top

Fayland Lam, <fayland at gmail.com>

ACKNOWLEDGEMENTS

Top

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

COPYRIGHT & LICENSE

Top


Catalyst-Action-Fixup-XHTML documentation  | view source Contained in the Catalyst-Action-Fixup-XHTML distribution.