NAME
Catalyst::View::HTML::Template::Compiled - HTML::Template::Compiled View Class
SYNOPSIS
# use the helper
myapp_create.pl view HTML::Template::Compiled HTML::Template::Compiled
# lib/MyApp/View/HTML/Template.pm
package MyApp::View::HTML::Template::Compiled;
use base 'Catalyst::View::HTML::Template::Compiled';
__PACKAGE__->config(
# any HTML::Template::Compiled configurations items go here
# see HTML::Template::Compiled documentation for more details
);
1;
# Meanwhile, maybe in an 'end' action
$c->forward('MyApp::View::HTML::Template::Compiled');
DESCRIPTION
This is the C view class. Your subclass should inherit from this
class.
METHODS
process
Renders the template specified in $c->stash->{template}, $c->request->match,
$c->config->{template}->{filename} or __PACKAGE__->config->{filename}.
Template params are set up from the contents of $c->stash,
augmented with *base* set to $c->req->base and *name* to
$c->config->{name}. Output is stored in $c->response->body.
config
This allows your view subclass to pass additional settings to the
HTML::Template config hash.
SEE ALSO
HTML::Template::Compiled, Catalyst, Catalyst::Base.
AUTHOR
Sascha Kiefer, "esskar@cpan.org"
COPYRIGHT
This program is free software, you can redistribute it and/or modify it
under the same terms as Perl itself.