I love smarty templates so much. We can write simple templates to complex templates very easy in smarty.

Simple Templates

{$username}
{if $username}
{$username}
{/if}

Complex Templates

{foreach from=$arr_pfacility item=pfacility_text key=pfacility_id}
< tr >
{assign var="id_selected" value=false}
{foreach from=$smarty.post.fp_pfacility item=sel_item}
{if $sel_item==$pfacility_id}
{assign var="id_selected" value=true}
{/if}
{/foreach}
< td width="10" >
{if $id_selected}
< input type="checkbox" name="fp_pfacility&#91;&#93;" value="{$pfacility_id}" checked >
{else}
< input type="checkbox" name="fp_pfacility&#91;&#93;" value="{$pfacility_id}" >
{/if}
< /td >
< td >{$pfacility_text.name}< /td >
< /tr >
{/foreach}

I am working on to load smarty as a plugin to wordpress. if someone interested in making the templates for their blog admin plugins they can do 😀

Download a sample implementation here