Assign variables to the template system so that they can be injected into the xhtml template.
$cpgtpl->assign_var(array( 'S_TO_OUTPUT'=>'The value', 'S_ANOTHER'=>'Another value'));