[Catalyst] Catalyst::View::TT, PRE_PROCESS and POST_PROCESS?
Matt S Trout
dbix-class at trout.me.uk
Sat Mar 25 17:03:34 CET 2006
Gavin Henry wrote:
> <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?
perldoc Template::Manual::Directives
--
Matt S Trout Offering custom development, consultancy and support
Technical Director contracts for Catalyst, DBIx::Class and BAST. Contact
Shadowcat Systems Ltd. mst (at) shadowcatsystems.co.uk for more information
+ Help us build a better perl ORM: http://dbix-class.shadowcatsystems.co.uk/ +
More information about the Catalyst
mailing list