ruby erb improvement