Nice post..
Now please guide me in this..
I have written some code in php , which uses cURL and gets information from an API in json format, then I am decoding it , and storing it in variables.., when I need to show the value of a variable to the users , I am embedding php tags in html, which I think is not good..so do you suggest me to use some kind of template engine ??
I want to avoid smarty , but rather make a small template engine myself..

Thanks