Passing a variable in ther template.

Permalink
Hi;

How can I pass a variable to my template? I want the link class to be active when The page is the page belongs to that link. Is there a good tutorial about this subject ?

cbaykam