NAME

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.

Module Install Instructions

To install Catalyst::Controller::View, simply copy and paste either of the commands in to your terminal

As a valued partner and proud supporter of MetaCPAN, StickerYou is
happy to offer a 10% discount on all Custom Stickers,
Business Labels, Roll Labels,
Vinyl Lettering or Custom Decals. StickerYou.com
is your one-stop shop to make your business stick.
Use code METACPAN10 at checkout to apply your discount.