Hello list,
I have Catalyst application with TT view. In short, my templates is:
=== root/src/q1.tt2 ===
[% META title = 'Q1' %]
Q1
=== root/src/q2.tt2 ===
[% PROCESS q2_processed.tt2 %]
=== root/src/q2_processed.tt2 ===
[% META title = 'Q2' %]
Q2
=== root/lib/site/html (processed via site-wide WRAPPER) ===
[% USE dumper(indent=0, pad="") %]
[% dumper.dump(template) %]
[% content %]
When I trying to look at pages (processing order is:
root/lib/site/html, then root/src/q1.tt2, or root/lib/site/html, then
root/src/q2.tt2, then root/src/q2_processed.tt2) I see following:
======== RESULTS ========
for q1 page:
$VAR1 = bless( {'_DEFBLOCKS' => {},'_BLOCK' => sub { "DUMMY"
},'modtime' => 1262127764,'name' => 'q1.tt2','_HOT' => 0,'title' =>
'Q1'}, 'Template::Document' );
Q1
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?
Thanks in advance.
--
Sincerely yours,
Oleg Kostyuk (CUB-UANIC)
_______________________________________________
templates mailing list
[email protected]
http://mail.template-toolkit.org/mailman/listinfo/templates