Catalyst::View::HTML::TemplateCatalyst::View::HTML::Template is a HTML::Template View Class. | |
Download |
Catalyst::View::HTML::Template Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Christian Hansen
- Publisher web site:
- http://search.cpan.org/~mramberg/Catalyst-Engine-Server-0.02/lib/Catalyst/Engine/Server.pm
Catalyst::View::HTML::Template Tags
Catalyst::View::HTML::Template Description
Catalyst::View::HTML::Template is a HTML::Template View Class. Catalyst::View::HTML::Template is a HTML::Template View Class.SYNOPSIS # use the helper create.pl view HTML::Template HTML::Template # lib/MyApp/View/HTML/Template.pm package MyApp::View::HTML::Template; use base 'Catalyst::View::HTML::Template'; __PACKAGE__->config( die_on_bad_params => 0, file_cache => 1, file_cache_dir => '/tmp/cache' ); 1; # Meanwhile, maybe in an 'end' action $c->forward('MyApp::View::HTML::Template');This is the HTML::Template view class. Your subclass should inherit from this class.METHODSprocessRenders the template specified in $c->stash->{template} or $c->request->match. 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.renderRenders the given template and returns output. Template params are set up either from the contents of %$args if $args is a hashref, or $c->stash, augmented with base set to $c->req->base and name to $c->config->{name}.configThis allows your view subclass to pass additional settings to the HTML::Template config hash.Requirements:· Perl
Catalyst::View::HTML::Template Related Software