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

Gavin Henry ghenry at perl.me.uk
Sat Mar 25 16:55:15 CET 2006


<quote who="denis at uzvik.kiev.ua">
>
> 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>

Many thanks.

I take it [% content %] is the template in $c->{stash}->{template} or
similar?

Gavin.

>
>
>> 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.
>
>
>
>
>
> _______________________________________________
> Catalyst mailing list
> Catalyst at lists.rawmode.org
> http://lists.rawmode.org/mailman/listinfo/catalyst
>




More information about the Catalyst mailing list