You'll have the vars in the template.
Just write something like <table><tr><td>$datereturn</td></tr></table>
and it'll output the value of $datereturn where you specified it.
Then, when you do the eval() thing, it'll fetch the template, replace all those vars as above and output the data (template, with vars replaced) to the new var you specify $foo = fetch_template(); )
you can then echo $foo again, which will output the whole template...
Sorry, I don't have time to explain right now, I'll try to get back to you this evening or tomorrow