add smarty tpl support