add multi-line template support