GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Catalyst::View::HTML::Template(3) User Contributed Perl Documentation Catalyst::View::HTML::Template(3)

Catalyst::View::HTML::Template - HTML::Template View Class

    # 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.

process
Renders 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".
render
Renders 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}".
config
This allows your view subclass to pass additional settings to the HTML::Template config hash.

HTML::Template, Catalyst, Catalyst::Base.

Christian Hansen, "ch@ngmedia.com"

This program is free software, you can redistribute it and/or modify it under the same terms as Perl itself.
2022-04-09 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.