Randal L. Schwartz wrote:
"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.
Not sure I understand. That q is a reference to the CGI object, so what
does it have to do with the template titles?
--
Kiffin Gish
Gouda, The Netherlands
_______________________________________________
templates mailing list
[email protected]
http://lists.template-toolkit.org/mailman/listinfo/templates