Hi,

I am having trouble with, what I'm sure, is a simple problem.

I am executing process in this fashion

$tt->process('subdir/page',
     {
      user   => {
                 id=> $userid, # some var defined earlier (EG 1234).
     },
      subs  => {
               makeUserLink => \&somFunc
     },
});


In page.tt, at the very top, I have

[% userid = user.id %]
Interpolated=[% $userid %]   # This is empty.
[% INCLUDE pageNav.inc %]

There are a number of INCLUDES, an in one (pageNav) I have a line like:

LID=[% userid %] # This appears correct (EG 1234)
interpolated=[% $userid %]  # This is empty.
interpolated=[% ${user.id} %] # This is empty.

<a href="[% subs.makeUserLink(userid=>$userid )">

I can't seem to get the userid variable interpolated within the call
to subs.makeUserLink() . $userid is empty. I can't see where I am
going wrong. Can anyone offer any hints?

Thanx,
Dp.

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

Reply via email to