The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Catalyst::Controller::View - Catalyst Controller that directly delegates to View

SYNOPSIS

    package MyApp::Controller::View;
    use strict;
    use warnings;
    use base 'Catalyst::Controller::View';

DESCRIPTION

A Catalyst Controller that delegates to View class directly, for convienent purpose.

METHODS

default

The default action. It sets $c-stash->{template}> to the path given by the URI unless there is no such file under root directory.

For instance, suppose your MyApp::Controller::View class is a subclass of Catalyst::Controller::View, when the incoming path is /view/foo/bar.html, then $c-stash->{template}> has the value /view/foo/bar.html if the file root/view/foo/bar.html exists.

AUTHOR

Liu Kang-min <gugod@gugod.org>

LICENSE

This library is free software, you can redistribute it and/or modify it under the same terms as Perl itself.