translate smarty template to etpl