If I understood correctly, there is no way to affect META data from PROCESSed template?
My goal is: set web page name from PROCESSed templates, using layout, very close to defaults from Catalyst::Helper::View::TTSite. Currently I changed all [% META title='...' %] to simple [% title='...' %], and all seems working. But I'm not sure that this will work well for all future cases, and as for me, META is more correct way, because it processed on pre-process stage. May be, there is some workaround to achieve same result? Thanks. PS: Andy, sorry for personal response, I was inattentive. 2010/1/2 Andy Wardley <a...@wardley.org>: > Oleg Kostyuk wrote: >> >> === root/src/q1.tt2 === >> [% META title = 'Q1' %] >> Q1 >> >> === root/src/q2.tt2 === >> [% PROCESS q2_processed.tt2 %] >> > > [...] > >> for q2 page: >> $VAR1 = bless( {'_DEFBLOCKS' => {},'_BLOCK' => sub { "DUMMY" >> },'modtime' => 1262127822,'name' => 'q2.tt2','_HOT' => 0}, >> 'Template::Document' ); >> Q2 > > [...] > >> As you can see, in second case, when PROCESS directive was used, we >> don't have template.title - why? What is wrong? > > Yes, that's right. 'template' always refers to the main page template > processed. In this case it's 'q2.tt2' and there is no META data defined > in that template. > > The fact that the q2.tt2 template PROCESSes another template doesn't cause > it to inherit its META data. > > HTH > A > > -- Sincerely yours, Oleg Kostyuk (CUB-UANIC) _______________________________________________ templates mailing list templates@template-toolkit.org http://mail.template-toolkit.org/mailman/listinfo/templates