$ erubis -xE PercentLine percentline-example.rhtml _buf = ''; for item in list _buf << ' '; _buf << ( item ).to_s; _buf << ' '; end _buf << '% lines with \'%%\' '; _buf.to_s