You (probably) just want
$output .= $tmpl_object->output(); [download]
In reply to Re: Append object output to scalar by Joost in thread Append object output to scalar by mhearse