Hi,

I've set up a template with a global var as follows:


my $tt = Template->new( {

    VARIABLES => {

        username => 'Simba',

    },

RELATIVE => 1,

} ) || die "$Template::ERROR\n";



In my template I do this:


This is a menu.html file:


<li><a href=""><span>Logged in as: [% username %] </span></a></li>


Which is included by every template like this:


[% INCLUDE menu.html %]


But I don't see  "Logged in as Simba" I just get "Logged in as"



What am I doing wrong?


I want to create a global var that I can display in a navigation file that is 
included in *every* template.


Help much appreciated.


Thanks


Khalid


This e-mail has been scanned for all viruses by Star.

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

Reply via email to