in a package i have defined some constants as subs,
package mypack;
sub const1 { 1; }
sub const2 { 2; }
and so on.
I'm using this constants in several packages, and i need to use them in the
template toolkit.
for example i want to something like
[% myvar = %] # here i'm setting the value of myvar
[% IF (myvar == mypack::const1) %]
do some stuff here if values match
[% ELSE %]
do anything else
[% END %]
so how can i access the constants.
While running the template i got an "unexpected token" error.
thanks and greetings
Gernot Homma
Cyber-Atelier
Shuttleworthstrasse 4-8 / Objekt 50
fon: +43 1 272 92 51 2
fax: +43 1 272 92 51 9
mail: [EMAIL PROTECTED]