There are many ways in Magento to pass values from Block to template. I think these two ways are neat:
in Block, $this->setVariableName($value);
and in template, $this->getVariableName();
in Block, $this->assign(‘variableName’, $value);
and in template, $variableName is ready to use.