add smarty tag surround mapping