>>>>> "Kiffin" == Kiffin Gish <[EMAIL PROTECTED]> writes:

Kiffin> Hi there. I am having a problem with the META directive which does not
Kiffin> seem to work if it is embedded in a template file called from [%
Kiffin> PROCESS filename %] or [% INCLUDE filename %]. For example:
[...]

Kiffin> However, this does NOT appear on my login.html page,
Kiffin> e.g. '<title></title>' and that's it.

You aren't showing your definition of "q" or "session", but I bet it's
referring to template.title, which will necessarily pick up only the
META for the top-level template.  To change this, you will have to
change the design of q's methods so that they get the information some
other way.  Perhaps the included template can set template.title =
"foo".  Ooops, just tried that, and it doesn't work.  {sigh} You'll
have to pass the variables in global.* then.  Set global.title = "whatever"
in your included file, and have q's methods refer to that.

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<[email protected]> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!

_______________________________________________
templates mailing list
[email protected]
http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to