Add Smarty template support.