NAME
CatalystX::Declare::Keyword::View - Declare Catalyst Views
SYNOPSIS
use CatalystX::Declare;
view MyApp::Web::View::Example
extends Catalyst::View::TT
with MyApp::Web::ViewRole::Caching {
after process (Object $ctx) {
$ctx->log->debug('done processing at ' . time)
if $ctx->debug;
}
}
DESCRIPTION
This handler is a direct extension of CatalystX::Declare::Keyword::Component and provides a view
keyword to declare a catalyst view. Currently, the only things this declaration does is setting up a Moose class like MooseX::Declare does, provide CLASS to its scope and default the superclass to Catalyst::View.
See "class" in MooseX::Declare for more information on this kind of keyword. Since views do not take actions, no special handling of roles is required, other than with controller roles. So if you want to write roles for views, simply use the "role" in MooseX::Declare syntax.
SUPERCLASSES
METHODS
These methods are implementation details. Unless you are extending or developing CatalystX::Declare, you should not be concerned with them.
default_superclasses
List[Str] Object->default_superclasses ()
Defaults to Catalyst::View.
SEE ALSO
AUTHOR
See "AUTHOR" in CatalystX::Declare for author information.
LICENSE
This program is free software; you can redistribute it and/or modify it under the same terms as perl itself.