[Templates] Problem with global variables
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
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