[Templates] Problem with global variables

2012-09-17 Thread Khalid Akram
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: lia href=spanLogged in as: [% username %]

Re: [Templates] Problem with global variables

2012-09-17 Thread Larry Leszczynski
Hi Khalid - my $tt = Template-new( { VARIABLES = { username = 'Simba', }, RELATIVE = 1, } ) || die $Template::ERROR\n; I think you want CONSTANTS, not VARIABLES. HTH, Larry ___ templates mailing list