[Catalyst] Catalyst::View::TT, PRE_PROCESS and POST_PROCESS?

denis at uzvik.kiev.ua denis at uzvik.kiev.ua
Sat Mar 25 11:44:21 CET 2006


myapp.yml
View::TT:
    WRAPPER: 'wrapper.tt'


wrapper.tt

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title>
            [% appname %]
        </title>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
        <link title="Maypole" href="[%base%]static/pagingandsort.css" type="text/css" rel="stylesheet"/>
    </head>
    <body>
        <div class="content">
            [% content %]
        </div>
    </body>
</html>


> Dear All,

> I am trying to automatically add a Header template and footer template to
> all templates for any controller, so as not to have a include in each
> controller template.

> I read about PRE_PROCESS to put a header on, but what would you recommend
> for adding a footer to all templates? Something to do with WRAPPER?

> Thanks,

> Gavin.







More information about the Catalyst mailing list