You want to make one of those?
just put something like this before the echo $template line
PHP Code:
$template = replace(':NEWVAR:',$newvar,$template);
now in the template .html file, just a put the :NEWVAR: whereever you want. But don't forget to define the $newvar variable in the .php file else it will be blank